How to link 2 cards with the same custom field text?
Asked by Hamal Fiallo:

Hello guys,

I use trello every day at my job, to manage all my teams.

Si ive been trying to make an atomation like this:

Example:

Custom field name: Hello

Value:1010

I would like to do this: ''when a card is added with a repeated or duplicated value (in this case 1010), link card together".

This would be super helpful for my daily work.

Please if someone can let me know how to do this!!!!!

Regards,

Hamal Fiallo


Answers:
author: milynnus
body: [@Hamal Fiallo](/t5/user/viewprofilepage/user-id/4049131)

With a set trigger and cascade to find cards with same custom field set to {customfieldvalue} and using linked items and iterate through the checklist adding link with {checklistitemname} you get the cards linked.

The only thing you cannot do is to do it recognise the pattern of the value you set like 1010 or 2020

comments: author: Hamal Fiallo
body: Lets see if i can explain myself better (sorry i speak spanish)...

Here's the deal...

I have a Custom Field with a Case # 25478 (for example, number can change depending on the case).

So, when an email comes in regarding Case # 25478, (i have an automation to go directly to one of trello's list). I want this new card with the email containing the # 25478, to link itself with the card that already exist.

For example: ''When a card is added to list "blablabla", containing in the comment the case # same has custom field on exiting card, link card together"

Hope you can understand me.

Regards,

Hamal Fiallo


author: milynnus
body: [@Hamal Fiallo](/t5/user/viewprofilepage/user-id/4049131)

Definitely doable but I will trigger it with a when a comment {\*}Case#{\* }{\*} is added to a card in the list instead.

Since you cannot Find a card by a CF value on a card, the alternative is use cascade looking for card with CF set to value {wildcard2} into linked items and add link as you iterate through checklist items as I suggested above.

Proof![Screenshot 2023-10-07 at 12.05.29 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/285064iC42B26DDBDC3429A/image-size/large?v=v2&px=999 "Screenshot 2023-10-07 at 12.05.29 PM.png")

![Screenshot 2023-10-08 at 8.07.20 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/285088iE32E3AF823D486EB/image-size/large?v=v2&px=999 "Screenshot 2023-10-08 at 8.07.20 AM.png")


author: Hamal Fiallo
body: Ok, It should be with checklist.

Can you please send me the exact atomation, ive never used cascade before. :(


author: milynnus
body: [@Hamal Fiallo](/t5/user/viewprofilepage/user-id/4049131) See above


author: Hamal Fiallo
body: What would happen if i put the case# in the description?

Would it be easier to find, match and link automatically?

Thanx for the great support.

Regards

Hamal


author: milynnus
body: [@Hamal Fiallo](/t5/user/viewprofilepage/user-id/4049131)

You can Find card if the lookup references are in name, description


author: Hamal Fiallo
body: Understood.

So what would be the command for.

When a card is added to list, containing in the comment the same number of the description as a card that already exist?


author: Hamal Fiallo
body: ???