Can I change the order of the options in an add-on multi-select field?

I have a multi-select field in JIRA whose options are to be populated with values from an external API.  I've created the field via an Atlassian Connect add-on.  The synchronization process is working fine, and I can see the options being created and updated.

The problem is that I've been asked to make sure the options are displayed in alphabetical (i.e. value) order when a user begins typing or clicks the "pull-down" arrow next to the field.  Right now the options are just being appended to the bottom of the list.  Is there some way to display the options sorted by value instead of by ID?

1 answer

Just to clarify if I undestand the question correctly:

Your connect addon adds a drop down to a JIRA issue view and you need to make sure that options in the drop-down menu are sorted alphabetically. Is that correct? If that the case - can you controll the order in which options are added? 

Your understanding is correct except that options can be added to the list over time.

As an example, let's say this add-on is synchronizing a list of locations. We start with these:

  • London
  • New York
  • Paris

Now during an update, I find several new locations to be added:

  • Barcelona
  • Los Angeles
  • Sydney

The add-on will now use the JIRA Cloud API to create those options.  And I can certainly be sure that those three options will be added in alphabetical order.  But the final list looks like this:

  • New York
  • London
  • Paris
  • Barcelona
  • Los Angeles
  • Sydney

When what I want is this:

  • Barcelona
  • London
  • Los Angeles
  • New York
  • Paris
  • Sydney

"Normal" custom field options can be moved into whatever position is wanted via Settings -> Issues -> Custom Fields and then picking the option.  I'm trying to figure out how to do the same with an add-on's custom field.

I am looking for something similar. I would like to sort versions in the releases dynamically rather than updating hundreds of projects thousands of versions manually. Have you found anything?

I was never able to find anything, and I haven't really looked as that particular project has come to an end.

I believe that versions are a built-in JIRA field, so you may have some other options available. My field was created by an add-on, and those are handled very differently.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,849 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot