Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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