Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created October 5, 2021 23:28
Show Gist options
  • Save iaindooley/310565840a9b38c6aaf853be3cb7b034 to your computer and use it in GitHub Desktop.
Save iaindooley/310565840a9b38c6aaf853be3cb7b034 to your computer and use it in GitHub Desktop.
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