Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Last active October 1, 2019 23:56
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/15d292334a935bcff3a3ae43d61337a3 to your computer and use it in GitHub Desktop.
Save iaindooley/15d292334a935bcff3a3ae43d61337a3 to your computer and use it in GitHub Desktop.
Add checklists based on list
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