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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


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
Community Members
Community Events
Community Groups

Butler/Automation: How to sort cards by label color?

We use labels, but we don't have just one with one color. So e.g. we have monthly meetings to talk about projects. For that meeting is a specific label added (color: green), but it also tells the month ("Meeting January", "Meeting Febuary", "Meeting March", ...). If I use this inside butler to sort by label it seems that I have to add all twelve labels ("green, Meeting January", "green, Meeting Febuary", ...). How can I add just "green"? I can't find an "editor" mode.

Before you start telling me about custom selects/dropdowns: thanks, but we have our reasons to use these labels, I just would like to use an easy sort criteria which should be available. :-)

1 answer

0 votes
Brittany Joiner Community Leader Mar 10, 2022

@Torsten Berger hi again! I believe you will need to sort by adding all the labels because Butler doesn't intrinsically know an order for labels (they're not like date fields that have oldest to newest, or numbers that are smallest to largest, etc) but you should be able to set that rule one time and it will forever sort by that!

When you say "editor" mode, what exactly are you looking for with that? 

Hi @Brittany Joiner 

Thanks for your answer. It don't think it's about "knowing the order". If I have three labels with "Meeting March" it still can sort these, maybe these three are random, but all cards with that label are in one place, so it should also be possible to order with another attribute (instead of name), like the labelcolor. There are variables like cardlabelnames and cardlabelcolors, which can be reached otherwise but not here. We have currently five columns (topics) with projects and we have currently three colors to label (and each color with twelve months). So my sort definition is for each column a "by statement" with 36 individual labels instead of just three colors. I don't think thats good code.

"Edit mode" was my hope because the rule reads like

sort the cards in list "A & B" 
by label green "go",
yellow "xxx Dezember", yellow "xxx November", yellow "xxx Oktober",
yellow "xxx September", ...

I hoped I could just remove the names and leave it with one yellow (in this case). 

Brittany Joiner Community Leader Mar 16, 2022

@Torsten Berger yeah unfortunately you can't just apply a "all yellows" rule / trigger (that i know of)

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events