Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/ffbf97d05651d35f70ea7074ab23fd27 to your computer and use it in GitHub Desktop.
Save iaindooley/ffbf97d05651d35f70ea7074ab23fd27 to your computer and use it in GitHub Desktop.
Move when all BDP5 checklists complete
function moveWhenAllBDP5ChecklistsComplete(notification)
{
var comp = new Notification(notification).completedChecklist(/BDP5.*/i);
var move = true;
comp.checklists(/BDP5.*/i).each(function(cl)
{
if(move)
{
move = cl.isComplete();
}
});
if(move)
{
comp.cards().moveTo("Other List","top");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment