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

Using Butler to assign a card based on multiple criteria

I would like a butler statement that works similar to:

when the name of a card in list "New Requests" contains "(AAAAAAAA)" or "(BBBBBBB)", add member @JohnDoe to the card

I can add one 'contains', but how do I do multiple when editing the rule?  Neither below seems to work.

"(AAAAAAAA)","(BBBBBBB)"

(AAAAAAAA) or (BBBBBBB)

(AAAAAAAA),(BBBBBBB)

(AAAAAAAA), (BBBBBBB)

"(AAAAAAAA)" or "(BBBBBBB)"

"(AAAAAAAA)", "(BBBBBBB)"

2 answers

1 vote
Iain Dooley Community Leader Sep 08, 2020

@Mike there's an undocumented regex modifier in Butler that you can use:

when the name of a card contains "regex:/.*(AAA|BBB).*/", post comment "got {wildcard1}"

in your case you change that 'post comment' to add member, but I wanted to demonstrate that the regex wildcards are available as variables also.

I saw this tidbit posted here about a year ago:

https://community.atlassian.com/t5/Trello-questions/Re-Trello-Butler-is-useless-for-us-unless-there-is-an-O/qaq-p/1227444/comment-id/19325#M19325

@Mike  deleted @Iain Dooley definitely has a better solution. 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Trello

Taco Tuesday: Your favorite Trello blog takeaway

Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...

222 views 10 9
Join discussion

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