Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Last active May 20, 2020 09:59
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/6649d2279627a8db46f448ef69cd855e to your computer and use it in GitHub Desktop.
Save iaindooley/6649d2279627a8db46f448ef69cd855e to your computer and use it in GitHub Desktop.
Card with comments report
function cardWithCommentsReport(params,signature,original_time)
{
var output = [];
new Board(params).lists().each(function(list)
{
output.push(list.name()+":");
list.cards().each(function(card)
{
output.push(" - "+card.name());
output.push(" - "+card.comments().find(function(cmt)
{
return cmt.text();
}).asArray().join("\n - ")
});
});
MailApp.send("user@example.org","Your report",output.join("\n\n"));
ExecutionQueue.push("cardWithCommentsReport",params,signature,original_time.addDays(1).at("9:00"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment