Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I create an "or" function when creating a custom Board Button?

Ariana Snow
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 2, 2021

I am creating a custom board button in the "Automation" Trello function. I have several cards in a list with different labels and I would like certain cards with certain labels to be automatically moved to another list. 

 

I created this button:

move each card in list "Recommendations Sent" with the blue "Coach's note" label with the blue "Sunscreen" label to list "New cards" on board "Team - Algorithm"

 

but what I need it to do is:

move each card in list "Recommendations Sent" with the blue "Coach's note" label OR the blue "Sunscreen" label to list "New cards" on board "Team - Algorithm"

 

How do I make this functionality "or" and not "and"?

 

Thanks!

1 answer

1 vote
milynnus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2021

@Ariana Snow 

Learned this recently and tested it just now :

 

move each card with the red "regex:/.*(Apple|Strawberry).*/" label in list "Inbox" to list "Done"

 

You can apply to the your situation since the labels are of the same colour.

Iain Dooley
Community Champion
July 4, 2021

@milynnus note that this will look for any label containing Apple or Strawberry, you could also do:

move each card with the blue "regex:/(Coach's note|Sunscreen)/i" label in list "Inbox" to list "Done"

without the ".*" which will look for an exact match. The "/i" at the end makes it case insensitive

Ariana Snow
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 6, 2021

How do I do the "regex" for the button? I don't see that in the Automation Board buttons option.

 

Also all the labels won't have the same color fyi (just in the example I showed). I have about 25 labels I need to do this for.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events