Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/ccc6ee001c72e37d5573843d39bb1888 to your computer and use it in GitHub Desktop.
Save iaindooley/ccc6ee001c72e37d5573843d39bb1888 to your computer and use it in GitHub Desktop.
Export some stuff
function appendRowForMovedCard(notification)
{
var moved = new Notification(notification).movedCard(/Move to here.*/i);
var ss = SpreadsheetApp.openByUrl(moved.board().list(/Project Info.*/i).card(/Target sheet/i).attachments().first().link()).getSheets()[0];
ss.appendRow([moved.link(),moved.name(),moved.description(),moved.members().find(function(mem){return mem.name();}).asArray().join(","),moved.labels().find(function(lab){return lab.name();}).asArray().join(",")]);
ss.appendRow(["Comments:"]);
moved.comments().each(function(cmt)
{
ss.appendRow(["",cmt.text()]);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment