Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
2 items completed
function twoItemsCompleted(notification)
{
var comp = new Notification(notification).completedChecklistItem(/(First Item|Second Item)/i);
var compcount = 0;
comp.checklist().card().checklists().each(function(cl)
{
cl.items().each(function(item)
{
if(/First Item/i.test(item.name()) && item.isComplete())
{
compcount++;
}
else if(/Second Item/i.test(item.name()) && item.isComplete())
{
compcount++;
}
});
});
if(compcount == 2)
{
comp.checklist().card().postComment("MAKE YOUR TIME. ALL YOUR BASE ARE BELONG TO US.");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment