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

How do I create a trigger with conditional logic (AND/OR)?

Che Fisher March 21, 2019

I would like to create a rule with a trigger like this:

when a card with the "blue label" with the "{black || sky || lime || pink} label" is added to the board...

Or, in more descriptive psuedocode:

When a card with the blue label that also has the black OR sky OR lime OR pink label is added to the board...

It's not super clear but seems like this should be possible given this description from the Butler maintainers:

In conditions that match the name or description of a card, or the name of a list or label, you can use a "wildcard" (or more than one) to match variable text...

Taken from here: https://trello.com/c/jgWL5gAb/214-condition-reference

1 answer

1 accepted

1 vote
Answer accepted
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.
March 21, 2019

@Che Fisher I think this would have been possible with Butler Bot, but I can't see anywhere in the power up that you can do if/else or match/against operations.

I think what you'd have to do with the power up is create multiple rules, one for card with blue and black, one for cards with blue and sky, one for cards with blue and link, one for cards with blue and pink.

Here's the code that would do it in Trellinator:

https://gist.github.com/iaindooley/27eeb2c6b27537c06e3e638da9b1525f

You can see how to install Trellinator here:

https://community.atlassian.com/t5/Marketplace-Apps-articles/Introducing-Trellinator-Automate-Trello-with-Google-Apps-Script/ba-p/925271

Che Fisher March 22, 2019

Thanks, will certainly look into Trellinator a bit later when I have time. Am just in the middle of writing a custom Google Sheets function to help with our OKR alignment actually - not my first foray into the strange world of Google Scripts. Cheers! 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events