So I got it in to my fool head the other day, of trying to figure out how to hack a way in to getting Butler to do if-conditionals. And somehow came up with a super niche, limited way to get it to work!
So I wanted to start a discussion of any weird Butler-hacks people have come up with to eke out that extra bit of efficiency against the limitations of Trello and Butler they've got squirreled away for a rainy day.
Anyways, I'll start. Here's a basic IF-Conditional example:
When a card button Prepped is clicked
Copy over a Tasks checklist, and assign a random member
IF FastTracked customfield checkbox is checked
THEN Tag it as Urgent, and assign 2 more members
First, create a personal board and call it Conditionals, and make a card named Checked in it.
Then create a custom field checkbox called FastTracked in whatever board you're working in.
Set up your Card Button. The bit in Blue is the Conditional.
What happens is that it tries to lookup a card that is named whatever value FastTracked is. With the checkbox, its either "Checked" or its "".
Given that there exists a Checked card, it'll look it up, then get on with tagging and adding members. But if FastTracked is unchecked, there is no card called "". And Butler doesn't like it when it can't find/lookup a card. The command run immediately comes to a screeching halt, and the rest of the run is skipped entirely.
Boom, instant if-conditional. You can't do an Else though, as it relies on crashing out of the command run. But if you're running through a multiplier like "For Each Card" however, it'll only crash out of that one branch, and will continue on to work through all the other cards!
As an extra, though I haven't tested it yet, I'm pretty sure this also works on other custom field types. You just have to create a card on the Conditionals board for every acceptable value. Operators like >= are still out of reach, but you can have things like if Y is an integer between 2 and 10 by just creating every integer in between on the Conditionals board.
Super proud of all the time I wasted figuring this out :P Anyone else have Butler-hacks to share?
Hello Community! My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. I'll be sharing with you a series of videos with my top tips on how to best use Trello...
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