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/1d1a386b644c9eb715e63b230a1bd7ea to your computer and use it in GitHub Desktop.
Save iaindooley/1d1a386b644c9eb715e63b230a1bd7ea to your computer and use it in GitHub Desktop.
Weekly report
function weeklyReport(params,signature,original_time)
{
var output = [];
new Board(params).cards().each(function(card)
{
output.push(getCardSizeData(card)+" in list "+card.currentList().name());
});
MailApp.send("user@example.org","Your report",output.join("\n"));
ExecutionQueue.push("weeklyReport",params,signature,original_time.addDays(7).at("9:00"));
}
function getCardSizeData(card)
{
//use the pluginData API to fetch what you need
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment