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?
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:
Now during an update, I find several new locations to be added:
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:
When what I want is this:
"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 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.
Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...
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!
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