Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,689
Community Members
 
Community Events
165
Community Groups

How to use Butler to remove a PDF attachment

Hi, we feed our Trello board with auto-generated Mails which have PDF attachments. I would like to remove all of these attachments first thing when a card enters the board. How is this possible?

Thanks in advance!
Nils

1 answer

@nvindice 

There is single action to add/remove attachment via link but I cannot find a way to iterate through all the attachments and looking for pdf specifically and removing the attachment. It can definitely be done via http request using trello api.

Thanks, is there a way to remove a specific PDF with the "remove link" action? I do know the filenames, but it does not seem to work this way.

@nvindice 

I am not at my desk but I think the url has the attachment id in the path besides the name. 

@milynnus Yes, there is one. I was hoping I could remove the attachment just by it's filename, but this does not seem to work.

However, I can't find a way to build deleting the PDF attachments using the Trello API with only a single http request, too. So there does not seem to be a way to solve my problem with Trello+Butler only, right?

@nvindice 

The http request can call an endpoint that has ability to go through all the attachments to find the name match if that is what is required. 
here are some examples 

https://github.com/xu2xulim/Superhero/blob/master/Superhero%20on%20deta/Micros/Attachments.md

@milynnusThanks, but this is a third party service, right? As the information on the cards is quite sensitive, we would like to use Trello and Trello services like Butler only (as stated in the initial request). Or am I missing something?


@nvindice 

It is something I developed but you can always have one built just for your use. If there is a Butler solution, yes you should go for it. 

@milynnusWe work under German GDPR/DSGVO with a mandatory DPA. I guess our problem is not large enough to justify the effort here.

However, I was expecting this simple feature ("remove all attachments" oder "remove attachment with name") to be a part of standard Butler features.

Thanks for your help!

@nvindice 

I am not familiar with German regulations but as far as I know there is none. Trello provides the http request within Butler for you to call services to handle such unique requirements. So you can get you in-house developers to create a service for you. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Trello

Taco Tuesday: New years' resolutions with Trello

Congratulations to @Laura Holton , our latest winner of Taco Tuesday! And thanks to @Kristján Geir Mathiesen for sharing the picture of Taco having fun with his new friend  B...

2,304 views 28 40
Join discussion

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