Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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?

2 answers

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
0 votes
vertikaldienst
Contributor
May 28, 2024

Maybe the Following is related to your problem:

For adding/removing Trello cards using wildcards I found out that the link to the card that you want to ad/remove needs to be entered by Butler with a dash "/" at the end... then it works.

Therefore this rule works for me:

when a comment starting with "https://trello.com/c/{* }" is posted to a card, remove link "https://trello.com/c/{commentwildcard1}/"

While this did NOT work:

when a comment starting with "https://trello.com/c/{* }" is posted to a card, remove link "https://trello.com/c/{commentwildcard1}"

(Does not make sense to me, counterintuitive, but since Butler is to me often counterintuitive I made random tries...)

Best

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events