Created
May 5, 2020 01:04
-
-
Save iaindooley/468367961936c27a0ae0d8deb23ea134 to your computer and use it in GitHub Desktop.
Copy template boards
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 copyTemplateBoards(notification) | |
{ | |
var notif = new Notification(notification); | |
var created = notif.createdCard("Collections"); | |
var team = new Trellinator().team("My Main Team"); | |
var coll = team.findOrCreateCollection(created.name()); | |
notif.board().list("Templates").cards().each(function(card) | |
{ | |
var first = card.boardsLinkedInAttachments().first(); | |
first.copy(first.name(),team).addToCollection(coll).addMember(nofif.member()); | |
created.attachLink(first.link()); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment