Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
createAndArchiveSubtaskCards
var added = new Notification(notification).addedLabel(/Subtask.*/i);
if(parts = /Subtask(.*)/i.exec(added.name()))
{
if(!(listname = parts[1].trim()))
listname = "Checklist";
added.card().checklist(listname).items().each(function(item)
{
item.setName(
Card
.create(
added.card().currentList(),item.name()
)
.archive()
.link()
);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment