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/94db1528594700f189160d77799ad662 to your computer and use it in GitHub Desktop.
Save iaindooley/94db1528594700f189160d77799ad662 to your computer and use it in GitHub Desktop.
Set elements from template
function setElementsFromTemplate(notification)
{
var created = new Notification(notification).createdCard();
var template = created.board().card("Template");
template.checklists().each(function(cl)
{
template.copyUniqueChecklist(cl.name(),created);
});
template.labels().each(function(label)
{
created.addLabel(label.name());
});
template.members().each(function(member)
{
created.addMember(member);
});
created.setDescription(created.description()+"\n\n"+template.description());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment