You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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?