Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Notify if inactive for some time
function notifyIfInactiveForSomeTime(notification,signature)
{
ExecutionQueue.push("checkLastActiveAndNotify",
{id: new Notification(notification).card().id()},
signature,
Trellinator.now().addDays(3));
}
function checkLastActiveAndNotify(card)
{
var card = new Card(card);
if(card.lastActivity() < Trellinator.now().minusDays(3))
MailApp.sendEmail("user@domain.com","Card inactive!","This card has been inactive 3 days: "+card.link());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.