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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • 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

convertToSingleSelect behaviour - label problem


I use behaviour and REST endpoint. Similar to

My REST returns list in format:

items: [{value: "xyz", label: "abc", html: "123"}]

html - represents what the user see in dropdown

value - represents value to save in field

label - I think it is string presented to user when some element is chosen. But is not working.

What is the destination of the label field? How to show user something different to value?

1 answer

1 vote

The way I've used this, label and html are functionally equivalent.

html allows you to provide the label with some formatting (to highlight the matching text for example).

After the selection is complete, the label is what you see in the field.

Note that in other screens (view screen, issue navigator) the "value" is all you can display and "value" is also used in indexing and searching. I would not attempt to use some internal ID for this. 

In most cases, you will likely want "value" and "label" to be the same.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Do Not Lose your Customer’s Trust

Missing deadlines is one of the biggest problems every team lead wants to avoid when dealing with managed services. When the customer contracts your company to help with IT services it is expected th...

24 views 0 0
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