Created
December 15, 2019 23:15
-
-
Save iaindooley/c5894dd7fc1e3cd9039069c9faf117b8 to your computer and use it in GitHub Desktop.
Create board from checklist item
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 createBoardFromChecklistItem(notification) | |
{ | |
var added = new Notification(notification).addedChecklistItem(); | |
if(added.checklist().name() == "List of Boards") | |
{ | |
var board = Board.findOrCreate(added.name()); | |
added.checklist().card().board().members().each(function(member) | |
{ | |
board.addMember(member,"normal"); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment