Skip to content

Instantly share code, notes, and snippets.

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/468367961936c27a0ae0d8deb23ea134 to your computer and use it in GitHub Desktop.
Save iaindooley/468367961936c27a0ae0d8deb23ea134 to your computer and use it in GitHub Desktop.
Copy template boards
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