Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,178
Community Members
 
Community Events
168
Community Groups

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

2 votes
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
Published in Trello

A Trello template to help you clean up your Confluence Space

Calling all Trello + Confluence users! We're celebrating all things Work and Wellness in our Confluence collection, where our team has been sharing activities to create more mindfulness around the ...

946 views 4 13
Read article

Atlassian Community Events