Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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