Created
June 23, 2020 01:27
-
-
Save iaindooley/ccc6ee001c72e37d5573843d39bb1888 to your computer and use it in GitHub Desktop.
Export some stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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