Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created October 5, 2021 23:28
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/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