Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created December 15, 2019 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/c5894dd7fc1e3cd9039069c9faf117b8 to your computer and use it in GitHub Desktop.
Save iaindooley/c5894dd7fc1e3cd9039069c9faf117b8 to your computer and use it in GitHub Desktop.
Create board from checklist item
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