Forums

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

Using Butler to assign a card based on multiple criteria

Mike September 8, 2020

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

2 votes
Iain Dooley
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 8, 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

0 votes
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.
September 8, 2020 edited

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events