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