Trello: How can you relocate multiple archived cards to another board simultaneously?
Asked by B?r? Andr?s D?niel:

Hello,

Is it possible to somehow relocate our archived cards to a different board? Currently, we have approximately 300k archived cards, and we've encountered the issue of approaching the limit on the number of attachments allowed on a single board. Unfortunately, switching to a different board isn't an option for us, as we rely on Trello 24/7. Hence, our intention is to create a new board where we can transfer the archived cards. However, manual transfer would be incredibly time-consuming, potentially taking weeks or even months.

I came across a post mentioning a bot called "BenkoBot," which I attempted to utilize. However, I encountered difficulty in getting the code to move more than one card at a time.

Is there any solution available to address this issue without the need to switch to a new board?  

Thanks in advance.  
Andrew


Answers:
author: Trello
body: **Hello B?r? Andr?s D?niel**

**You can do this using the[Trello API](https://developer.atlassian.com/cloud/trello/rest/) and [Scripts](https://en.wikipedia.org/wiki/Scripting_language).**   
In the code you need to request cards from your board, and check the condition "is the card archived?" If "yes," then we move it to another board.

The API allows you to request an array of cards on your board and execute commands to move it.

Please tell me, do you have one list where the cards were archived, or several lists? (the complexity of the script depends on this)

*** ** * ** ***

I'm ready to help you move the cards, i have experience in this.  
All my 50 employees work in Trello, that's a lot of cards, and 3 years ago I had the same problems as you.

To do this, I independently studied programming and made many business programs for my Trello. Every month I use them to make huge reports, process maps in bulk, perform searches and aggregations through scripts for various tasks.

*\*I use a translator, there may be typos*

comments: author: B?r? Andr?s D?niel
body: Thank you for your response.  

I'm a bit unfamiliar with the Trello API myself, but I believe it's a developer tool used for integrating Trello with other applications. It sounds promising, but I'm concerned about whether it might exhaust our monthly quota of workspace commands. We currently have around 40 lists in our board.


author: Trello
body: API limits {#toc-hId--380067123}
--------------------------------

Trello API has its own limits, [more details here.](https://support.atlassian.com/trello/docs/api-rate-limits/)

In short, the API has a limit of 300 requests per 10 seconds, this will seem like an "unlimited tool" to you. You can control the system as you wish.

According to my rough calculations, it will take 3 hours to move your 300k cards, well, a new board.

If you are interested in this, I can write you this script, test it on my Trello and send you a video demonstration

Butler Quotas {#toc-hId-2107445710}
-----------------------------------

Trello Butler has its own limits, [more details here.](https://support.atlassian.com/trello/docs/butler-quotas-and-limits/)

Your Butler "operations" and "runs" limits will not be consumed when using the API.

Provided that you do not perform actions that activate the triggers of your Butler rules.

**Example 1:**

* *You want to move 50 cards from sheet A to sheet B.*
* *You run the script, it takes all the cards in list A, and for each one it makes an API request to move it to list B.*
* *In this case, Butler did nothing, there is no quota consumption.*

**Example 2:**

* You want to move 50 cards from sheet A to sheet B, and you have the Butler rule enabled with the trigger "When a card is moved to sheet B"
* You run the script, it takes all the cards in list A, and for each one it makes an API request to move it to list B.
* Since sheet B is specified in the Butler trigger, there will be 50 "runs" of commands and consumed "operations" in the amount of (n-runs \* n -operations in the rule)


author: B?r? Andr?s D?niel
body: Thank you for the explanation. I would greatly appreciate it if you could provide the demonstration you mentioned.


author: Trello
body: I did the demo as promised {#toc-hId--379322502}
------------------------------------------------

#### [open demo link](https://drive.google.com/file/d/1eF4JXFM4My0A5ZmEb534re8lGI-YsfL-/view?usp=sharing) {#toc-hId--1485712387}

Speed \~3 cards/sec. 300 thousand cards = 20--35 hours.

I also made the second option - a slower version of the mover, it overloads the API less.  
Can be used when your Trello is working hard to avoid lag in the board or Butler.