Created
September 29, 2021 04:05
-
-
Save iaindooley/fa7693d6b55f0e8ea6a3bfd35f78e8de to your computer and use it in GitHub Desktop.
setMemberAndDueDateOnAddedChecklistItem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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