Created
October 5, 2021 23:28
-
-
Save iaindooley/310565840a9b38c6aaf853be3cb7b034 to your computer and use it in GitHub Desktop.
copyCardWithState
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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