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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

Share your Butler-hacks. Here's an IF-Conditional

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

The Setup:
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.
image.png

The Butlering:
Set up your Card Button. The bit in Blue is the Conditional.
image.png
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?

3 comments

Numeric Conditionals
A non-trigger way to do greater-than, lesser-than, etc., portioning away part of the command for only if the condition was met.

If custom-field X is greater than Y, Do Things, else Do Nothing.

The entire logic chain rests on the fact that the Collect All Cards command can filter for cards with a custom field greater/lesser than (or equal to) a number. Outlined in Light Blue below.

The reason the rule below is so long, is just to make sure that when you Collect All Cards, you've narrowly defined it enough so that it will only choose the current card its triggering on. Which is the role of the Blue Butlering tag. That and cleaning up after itself. Technically, you only really need the one action itself, if you can narrowly define it well enough for other reasons, and don't mind random lists just lying about :P

Only the cards moved into ThisList that have the custom-field Value > 5 will have the Red ActedOn tagged on to it in the end.

Be careful to test out the command run in full though, as it can get rather long and Butler can decide its too long and cancel the command?? Didn't get that on these tests, but its happened before.

image.png

Butler trick: Different outputs for different Labels

Using a single rule that reacts differently depending on which label is attached. Targeting a different list or card or checklist. (they all have to be the same colour though)

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Trello

📹 What is Trello?

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...

300 views 10 16
Read article

Community Events

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

Events near you