Remove attachments that have unpredictable URL via Butler

physx April 30, 2019

Hello

I'm having a hard time finding an option to remove attachments using Butler that start with a specific URL. I'm using Butler that copies a card from one board to another. The card in the primary board has PDF attachment that gets auto attached using Zapier hence dynamic URLs are being generated for the attachments. The URLs start with https://trello-attachments.s3.amazonaws.com/abcdefgh/mypdf.pdf where abcdef is a very long and unpredictable aphanumeric character.

Now after the card is copied to another secondary board and linked with the primary card, I wish to remove the PDF attachment from the copied card. Under butler  I could find the option to "remove link" under -/+ tab. However, I cannot select the specific attachment nor I can enter wildcard URLs. (https://trello-attachments.s3.amazonaws.com/)

So my question is, there a way to remove attachments in the copied card whose URLs are auto assigned by Trello itself?

1 answer

1 accepted

1 vote
Answer accepted
Iain Dooley
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 30, 2019

@physx Hmm yep I can confirm this behaviour, I also can't remove links based on wildcards. I tested with a file recognised as an attachment and with just a link and neither worked with wildcards.

If you install this Trellinator command on the target board (where the cards are copied to) it'll remove Trello attachments:

https://gist.github.com/iaindooley/741872516f9ff3ab376701488a0c8e89

You can see how to install Trellinator here:

https://community.atlassian.com/t5/Marketplace-Apps-articles/Introducing-Trellinator-Automate-Trello-with-Google-Apps-Script/ba-p/925271

physx April 30, 2019

This is amazing! Thank you so much, works as intended.

Like Iain Dooley likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events