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

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

Assigning Labels based on Custom Fields

Is there an easy way to assign a Label to a card based on a variable Custom Field.

For example if I had a Custom Field with 5 Options, can I create 5 labels and get a Label assigned to the card based on the answer I provide to the Custom Field

2 answers

0 votes
Iain Dooley Community Leader Jan 28, 2021

@Olly Smart this Trellinator function would add a label when a custom field value is set, removing all other labels:

https://gist.github.com/iaindooley/1195a8e284a37fd2627bd6ccf4fb3750

You can read more about Trellinator here:

https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Introducing-Trellinator-Automate-Trello-with-Google-Apps-Script/ba-p/925271

0 votes
Hana Kučerová Community Leader Jan 28, 2021

Hi @Olly Smart ,

welcome to the Atlassian Community!

I think you can create set of rules with Butler, something like this:

when custom field "Test Dropdown" is set to "Option 1" by anyone, add the green label to the card

Hi there, thanks for responding ...  yes I considered that option but was hoping for something more efficient so that I can change the Option and the label will change too .. without having to add rules to remove the old label(s) before adding the new label.. 

Hana Kučerová Community Leader Jan 28, 2021

I understand. I looked through the Power-Ups, but I didn't find anything, that would help you. That doesn't mean there's no way, but I'm sorry, I don't see any right now.

What exactly is your use case? Maybe we will be able to find completely different way. Thank you.

I have 13 options (they represent different workstreams) and a card can move from one to another.

When I select one of those options I wanted a label to follow that.

It seems that this may not be easily possible (other than to create a rule which removes the other 12 labels each time I select a new value)

So for now I can simply type the option value(s) in the search bar for the relevant option(s) in order to filter the view to only see those cards.

Hana Kučerová Community Leader Jan 29, 2021

Hi @Olly Smart ,

thank you. So, if there is the possibility to create custom filter based on the custom field value, you won't need the labels. But AFAIK this is still not possible :-(.

So, yes, the best way I can think of is to use the search as you mentioned. Maybe you can prepare your searches and store them as bookmarks to your browser.

Or you can try the Trellinator function, as @Iain Dooley suggested.

Suggest an answer

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

📹 Favorite Trello templates

Hello Community!  My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. In this video, I'll share my favorite Trello templates. Templates mentioned in ...

3,635 views 25 63
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