Last active
June 3, 2021 22:48
-
-
Save iaindooley/c9683d0f9487d008c8656941ea8f2840 to your computer and use it in GitHub Desktop.
createDepartmentOnBoarding
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
//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