Created
May 7, 2020 08:39
-
-
Save iaindooley/86bcc679a3f179d074efc4dd5edfd340 to your computer and use it in GitHub Desktop.
Create cards for attachments
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 createCardsForAttachments(notification) | |
{ | |
var added = new Notification(notification).addedLabel("Split Attachments"); | |
var target_list = added.card().board().findOrCreateList(added.card().name()+" Attachments"); | |
added.card().attachments().each(function(att) | |
{ | |
Card.create(target_list,att.name()).attachLink(att.link()); | |
att.remove(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment