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 - how to set a label based on a variable

Hannah Morgan Community Leader Jun 27, 2021

Hi there! I'm wanting to create a rule that looks something like this:

"When custom dropdown is set, apply the label {customfieldvalue}."

So, let's say the custom field is set to "DOG", it should apply the "DOG" label.

If the label exists, it should apply the pre-existing label. If the label does not exist, it should create a new one. 

Is it possible?

1 answer

1 accepted

0 votes
Answer accepted

@Hannah Morgan 

Possible if you use custom labels using one colour and it creates one if the name does not exist.

Hannah Morgan Community Leader Jun 29, 2021

Thanks @milynnus for the reply. I can't seem to add a variable into the label action, I only see the option to select an existing label 🤔 what am I missing?Screenshot_20210629-220024_Chrome.jpg

@Hannah Morgan 

Choose any invisible custom label(aka with a name) Then replace the name with your cf value

If I recall, Trello will find a matching name and use the colour. 

@Hannah Morgan 

Or temporary create a custom label for the colour of your choice. Then replace the name 

Hannah Morgan Community Leader Jun 29, 2021

Sorry if I'm not understanding your answer, but would that mean I'd have to create a different rule for each cf value? I currently have a label already created for each cf value, but I want to avoid having to create a separate rule for each cf value. The goal is to just have one rule and I don't have to create a new rule and a new label everytime a new cf value is created, so ideally if would just say "when cf is set, add label with cf value".

@Hannah Morgan 

Watch the video

If there is a CF with no corresponding label and invisible label with the name will be created.

That is why if you want a coloured label instead of an invisible one that use a temporary custom label (ie with a name) of the colour of your choice and replace the temporary name with {customfieldvalue}

Hannah Morgan Community Leader Jun 29, 2021

@milynnus thanks so much for taking the time to record the video! I finally managed to get it working as expected. The part that I was getting hung up on was that I actually had to create a label called "{customfieldvalue}". Thank you again!Screenshot 2021-06-30 172622.png

@Hannah Morgan 

Hmm that result is different from what I had experienced. What is got was an invisible label with name equal to to {customfieldvalue}  

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Trello

Taco Tuesday: New years' resolutions with Trello

Congratulations to @Laura Holton , our latest winner of Taco Tuesday! And thanks to @Kristján Geir Mathiesen for sharing the picture of Taco having fun with his new friend  B...

2,315 views 28 40
Join discussion

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