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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Is there a way to automatically copy any attachment to a designated card?

We are looking to manage our attachments in Trello. The request is to be able to easily access all attachments added to the board. We use Box (not Google Drive). Is there a way to automatically copy an attachment added to any card to a designated "attachment" card? From my research, it doesn't look like there's an easy way to download all attachments from a board. 

2 answers

I do this with Wayscript and py-Trello to insert attachments from cards to target cards based on custom fields. So it does require some programming to extract the attachments. Insert attachment to a new card however has it in Wayscript Trello module. 

This is a sample test code in using py-trello for a current prospect. Idea is to list attachments to a client to review and approve. 

pa_attachments_urls = ''
pa_attachment_list = []
for x in trello_card.get_attachments():
new_url = pa_attachments_urls + '<a href={}>{}</a><br><br>' .format(x.url, x.name)
pa_attachment_list.append('<a href={}>{}</a>' .format(x.url, x.name))
pa_attachments_urls = new_url

 

in another project, using the same py-trello library to add an attachment to a card that respects a restaurant : 

added_card.attach(url=my_board.url, name = 'Menu')

Used with Wayscript with its Trello and Trello trigger you can automate most things. Monitor card movement events across list represent work progression is a common use case.

Like Iain Dooley likes this
0 votes
Iain Dooley Community Leader Jun 16, 2020

@Lauren Johnson this function does it for Drive:

https://gist.github.com/iaindooley/b500f5a367480fb258464f259df61eeb

however I did do an implementation of this for someone recently that did the same thing but for Dropbox. Wouldn't be too hard to adapt that for the Box API (I assume). That function centralises all card attachments into a single folder for easy download you could also do it so all files on a board were put into a single folder rather than having a folder for each card.

You can read more about Trellinator here:

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

Suggest an answer

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

📹 What is Trello?

Hello Community!  My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. I'll be sharing with you a series of videos with my top tips on how to best use Trello...

846 views 14 30
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