Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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