Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created October 11, 2019 13:06
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/fb597ecb1b63fb7fe28ba93576b4277f to your computer and use it in GitHub Desktop.
Save iaindooley/fb597ecb1b63fb7fe28ba93576b4277f to your computer and use it in GitHub Desktop.
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