Last active
October 1, 2019 23:56
-
-
Save iaindooley/15d292334a935bcff3a3ae43d61337a3 to your computer and use it in GitHub Desktop.
Add checklists based on list
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 addChecklistsBasedOnList(notification) | |
{ | |
var moved = new Notification(notification).movedCard(); | |
var template = | |
moved | |
.board() | |
.list("Checklist Templates") | |
.card(moved.currentList().name()); | |
template | |
.checklists().each(function(cl) | |
{ | |
template.copyChecklist(cl.name(),moved,"top"); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment