Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function copyBoardWithAssignments(notification)
- {
- var template = new Trellinator().board("My Template")
- //This automatically preserves membership of the original board
- var copy = template.copy("New Board Name");
- template.lists().each(function(list)
- {
- list.cards().each(function(card)
- {
- card.members().each(function(member)
- {
- //Assuming card name per list is unique
- copy.list(list.name()).cards(card.name()).addMember(member);
- })
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement