Created
May 16, 2020 12:21
-
-
Save iaindooley/1d1a386b644c9eb715e63b230a1bd7ea to your computer and use it in GitHub Desktop.
Weekly report
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 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