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

This widget could not be displayed.
Ivan Ryabov Atlassian Team Apr 18, 2017

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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

292 views 5 0
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