Skip to content

Instantly share code, notes, and snippets.

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/86bcc679a3f179d074efc4dd5edfd340 to your computer and use it in GitHub Desktop.
Save iaindooley/86bcc679a3f179d074efc4dd5edfd340 to your computer and use it in GitHub Desktop.
Create cards for attachments
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