Created
May 16, 2020 11:37
-
-
Save iaindooley/ffbf97d05651d35f70ea7074ab23fd27 to your computer and use it in GitHub Desktop.
Move when all BDP5 checklists complete
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
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