Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Edited subtasks
function subtasks(notification)
{
var notif = new Notification(notification);
//If a checklist item was converted to a card
var converted = notif.convertedChecklistItemToCard();
//If it was converted in a list called Subtasks
if(card.source.name() == "Subtasks")
{
converted.setName(converted.source.card().name()+" "+converted.name());
converted.source.card().addChecklist(converted.source.name(),function(cl)
{
cl.addItem(converted.link());
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.