Skip to content

Instantly share code, notes, and snippets.

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/2e6d9fdd60f68e3b16a6cbfe22344354 to your computer and use it in GitHub Desktop.
Save iaindooley/2e6d9fdd60f68e3b16a6cbfe22344354 to your computer and use it in GitHub Desktop.
setDueBasedOnListName
var added = new Notification(notification).addedCard();
try
{
added.setDue(
Trellinator
.now()
.addHours(10)
.minusDays(1)
.next(added.currentList().name())
.minusHours(10)
);
}
catch(e)
{
//The list name was not a valid day
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment