Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created September 22, 2020 00:06
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/55b17e34389c8f78ac2cc1e94e70a288 to your computer and use it in GitHub Desktop.
Save iaindooley/55b17e34389c8f78ac2cc1e94e70a288 to your computer and use it in GitHub Desktop.
Cards created this week
function cardsCreatedThisWeek()
{
var output = [];
new Trellinator().board("Board Name").cards().each(function(card)
{
if(card.whenCreated() > Trellinator.now().minusDays(7).at("00:00"))
{
output.push(card.name()+" ("+card.link()+") created: "+card.whenCreated().toLocaleString());
}
});
MailApp.sendEmail("you@example.org","Card created report since: "+Trellinator.now().minusDays(7),output.join("\n"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment