Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

@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 Leader Jul 04, 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

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
Community showcase
Published in Trello

🏊‍♀️ Atlympic Event: Trello

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

237 views 3 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you