Created
February 14, 2019 22:45
-
-
Save iaindooley/c9ddd1f85de636ffe758a2245b6ddedb to your computer and use it in GitHub Desktop.
Modified create new project board
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 createNewProjectBoard(notification) | |
{ | |
var card = new Notification(notification).addedCard("To Do"); | |
var trellinator = new Trellinator(); | |
var new_board = trellinator.board("Project Template").copy(card.name(),trellinator.team("Projects")); | |
Trellinator.addBoardToGlobalCommandGroup(new_board,"Project Boards"); | |
card.attachLink(new_board.link()); | |
new_board.cards().each(function(card) | |
{ | |
card.labels().each(function(label) | |
{ | |
try | |
{ | |
card.addMember(new Member({username: label.name()})).removeLabel(label); | |
} | |
catch(e) | |
{ | |
Notification.logException("Could not add member based on label name",e) | |
} | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment