Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
updateAllChecklists
var notif = new Notification(notification);
var added = notif.addedChecklistItem();
if(!notif.member().notTrellinator())
throw new InvalidActionException("Ignore actions taken by the Bot user");
added
.checklist()
.card()
.board()
.cards()
.each(function(card)
{
if(card.id() != added.checklist().card().id())
{
try
{
card.checklist(added.checklist().name()).addUniqueItem(added.name());
}
catch(e)
{
Notification.expectException(InvalidDataException,e);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment