Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Last active June 3, 2021 22:48
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/c9683d0f9487d008c8656941ea8f2840 to your computer and use it in GitHub Desktop.
Save iaindooley/c9683d0f9487d008c8656941ea8f2840 to your computer and use it in GitHub Desktop.
createDepartmentOnBoarding
//when a card is created in a list ...
var created = new Notification(notification).createdCard();
//copy the department template board based on list name
var new_board = new Trellinator()
.board(created.currentList().name()+" Department Onboarding Template")
.copy(new Date().butlerDefaultDate()+" "+created.currentList().name()+" Department Onboarding");
//now copy all the lists from the company level template
new Trellinator().board("Company Onboarding Template").lists().each(function(list)
{
list.copy().move(new_board,"top");
});
//link the new board to the overview card
created.attachLink(new_board.link());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment