Add checklists from all cards with the same label
Asked by katie.odowd:

Is there a way to add all checklists from various cards that have the same label? E.g. I've created a button called "Ireland" which when I click it, I would like all checklists from different cards with the label "Ireland" to be added to the card.


Answers:
author: Vongsawat
body: So while there's a command for copying over a checklist, it only copies a single named checklist. No command for copying all checklists.

Luckily you can iterate through all checklist items and copy them over one by one, and they also retain their checklist name.

There's also a command to collect all Ireland-labelled cards in to a checklist, so that you can iterate over them. Alas, Butler does not allow you to stack two loops on top of each other, so they have to be split up in to two separate Butler commands. A Card Button that triggers a Rule on every Ireland card, so that they each transcribe their checklists back to the original card.

(Some additional notes and potential issues at the bottom)

**Card Button**to find all the Ireland cards, collect them in to a checklist, rename the Ireland cards with the link back to this card, and apply a label that triggers the second rule.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/250584iFC4B63B7A5094A7E/image-size/large?v=v2&px=999 "image.png")

**Second Rule**   
Removes the triggering label and reverts the card title to the original. Then each checklist item is transcribed back to the original card.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/250585i2665BD29C6BEACD2/image-size/large?v=v2&px=999 "image.png")

Note 1 : Removing the Ireland label from the collecting card is to ensure you don't accidentally create a loop. just in case.

Note 2 : The collecting card ends up with a list of all the Ireland cards. You may want to set up another card button to get rid of it. Or just remember to get rid of it manually.

Note 3 : You should create the triggering label first, in Trello, then refresh the page, to ensure you get access to it in Butler. Otherwise it might not show up in the drop-down.

Note 4 : You can replace the # with any unique character(s) that you are sure will not be used in card names.

Note 5 : There's an additional trick for transcribing the state (tick) of checklist item. But it uses a somewhat complex [workaround](https://community.atlassian.com/t5/Trello-discussions/Share-your-Butler-hacks-Here-s-an-IF-Conditional/td-p/1426156) ({checklistitemstate} gives "Complete" and "Incomplete" if you try your hand at it). Ask if its useful to your use-case I guess.

*** ** * ** ***

Some potential issues:

Issue 1 : If multiple Ireland cards have the same checklist name, they all get sent to a combined checklist. Which may be a dealbreaker. One way to get around it is to always have different checklist names, but the feasibility of that really depends on your use-case. Alternatively, you may wish to append something to the {checklistname} so that it's unique to that card. like {checklistname}-{triggercardname}

Issue 2 : The above issue is also true for multiple checklists of the same name on a single Ireland card. They too will all get jumbled in to a single checklist. And the automated solution above would not work, given that they all share the same card name.

Issue 3 : This method is blind to empty checklists and so they will not be copied over

Issue 4 : If you have other automations that trigger off of card names, or when they change their name, that can also be an issue. If you are on a paid workspace, you can instead store the url link of the collecting card in to a custom field on the Ireland card. Then instead of Finding {wildcard2}, you Find {{%customfield}} instead (replace with the name of the custom field). This is an altogether more elegant solution, but out of reach of free Trello users. (If you do this, the second rule wouldn't need to filter for {\*}#{\*}, nor revert the naming.

Issue 5 : As this transcribes each checklist item individually, the automation-runs/operations may balloon depending on how many Ireland cards / checklist items you have, etc. Which depending on your Trello plan and therefore Butler [quota](https://support.atlassian.com/trello/docs/butler-quotas-and-limits/), could be an issue?