Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
copyCardWithState
var added = new Notification(notification).addedLabel("Copy With State");
var copy = added.card().copyToList(
added.card().board().findOrCreateList("Copied Cards"),
"top"
)
.markDueDateIncomplete();
added.card().checklists().each(function(cl)
{
cl.items().each(function(item)
{
copy.checkItemByName(item.name());
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment