Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created September 29, 2021 04:05
Show Gist options
  • Save iaindooley/fa7693d6b55f0e8ea6a3bfd35f78e8de to your computer and use it in GitHub Desktop.
Save iaindooley/fa7693d6b55f0e8ea6a3bfd35f78e8de to your computer and use it in GitHub Desktop.
setMemberAndDueDateOnAddedChecklistItem
var added = new Notification(notification).addedChecklistItem();
var split = added.name().split("|");
if(split.length == 3)
{
var text = split[0].trim();
var date = new Date(split[1].trim());
var member = new Member({username: split[2].trim()});
added
.setName(text)
.setDue(date);
.addMember(member);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment