Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Last active July 4, 2019 12:11
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/1028cd866451c229c43b417d1b349080 to your computer and use it in GitHub Desktop.
Save iaindooley/1028cd866451c229c43b417d1b349080 to your computer and use it in GitHub Desktop.
Unarchive 3 days before due date
function setDueWhenArchived(notification)
{
new Notification(notification).archivedCard().setDue(Trellinator.now().addDays(7));
}
function scheduleUnArchive(notification,signature)
{
new Notification(notification).actionOnDueDateAdded("unArchiveCard",signature,function(date)
{
date.minusDays(3);
});
}
function unArchiveCard(notification)
{
new Notification(notification).card().unArchive();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment