It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Remove attachments that have unpredictable URL via Butler

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 Apr 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

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
Community showcase
Published in Trello

Develop a new Habit during Lockdown

If you had to thrive a new habit during a lockdown, what would it be? Trello

1,653 views 16 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you