Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created January 14, 2019 02:54
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/17e0ec6f3a18a7fadaaee45fb6586ddf to your computer and use it in GitHub Desktop.
Save iaindooley/17e0ec6f3a18a7fadaaee45fb6586ddf to your computer and use it in GitHub Desktop.
Priority level
function setDueAccordingToPriority(notification)
{
var notif = new Notification(notification);
var label = notif.addedLabel();
label.card().setDue(Trellinator.now().addDays(parseInt(notif.board().list("Priorities").card(label.name())).description()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment