How can I generalize/relativize the destination list of a Card Move trigger?
Asked by Dane Salmon:

I want to trigger an action whenever a card is moved to any list except two (2). This forces me to create multiple triggers for the majority of the lists on the board.

Is there a way to generalize the target list criteria, similar to how the source list criteria can be relativized?

Thanks in advance.


Answers:
author: Hannah Humbert - Simpla Workflows
body: Potentially variables could solve this for you? For example, let's say I want to move all cards with the green label on board A to board B. In board A, the lists are 1, 2, and 3, and I also have these lists on board B. When I apply the green label to a card in board A that's in list 1, I want it to move to board B and land in list 1 also.  

The rule would be "When a green label is applied to a card, move the card to list {triggercardlistname} in board B".  

You would just need to ensure the lists are named exactly the same on both boards.  

Does that make sense for your workflow?

comments: author: Dane Salmon
body: Unfortunately, this 'mirroring hack' will not do as I am only working with a single board. Also, the need is more along the lines of being able to filter which list(s) on the board triggers an action whenever a card is moved into it from another list on the same board.

The current way of doing this creates a tedium when the trigger should be one the majority of the lists. For instance, if I have 10 lists on a board, and I want to create a "when a card is added to list" trigger all of them, except 2, I will have to create 8 separate triggers. Is there a way to just say, "when a card is added to list except..."?

Nevertheless, I appreciate your feedback; it was a good try. :)

Best Regards


author: Hannah Humbert - Simpla Workflows
body: Ok, gotcha. Maybe try using one of the following:  

![Screenshot 2021-08-27 131553.png](https://community.atlassian.com/t5/image/serverpage/image-id/157766iB3619336476823BF/image-size/large?v=v2&px=999 "Screenshot 2021-08-27 131553.png")  

Alternatively, you could use regex in your trigger to create an OR statement. E.g.  
![Screenshot 2021-08-27 131802.png](https://community.atlassian.com/t5/image/serverpage/image-id/157767iD9AE3FF9970F0D17/image-size/large?v=v2&px=999 "Screenshot 2021-08-27 131802.png")  
Using regex:/.\*(A\|B\|C).\*/ means that the trigger will apply when a card is added to lists A, B, or C.  

<br />

<br />


author: Dane Salmon
body: Ok, I can work with this.

Thanks a lot. You have been a big help!


author: Hannah Humbert - Simpla Workflows
body: Great! Happy to help. Hope that works out for you ?


author: Dane Salmon
body: Yes, it works fine. Just curious to know if Trello's regex engine supports case-insensitivity. This would be most helpful.

Thanks.


author: Hannah Humbert - Simpla Workflows
body: Good question! I'm not entirely sure actually. There's no documentation around the regex function that I know of, so it might be worth reaching out to Trello directly to see if they're able to share any additional information around how it works (or you could just test it out :)).


author: Dane Salmon
body: Ok, fine.

Thanks a lot.