I'm using the REST API to create a report for a custom field. The field is a select list, which means that there is an ordered set of allowed values. Correct ordering of the values is important to the report because they represent sequential stages in a process.
The allowed values are returned in the createmeta JSON for the field. They seem to be in the same order as they appear on the custom field configuration screen, but is this guaranteed?
IOW, is it safe to assume that the first item in the allowedValues JSON array is the first item in the select list, etc.?
@Chris DunfordOnce you create a custom field as you know you order the options of the custom field as you want. What ever you define in the JIRA API configuration for the custom field is what you get back surely when you perform a GET request via REST AP
To verify this re- order values customfield_1801( a, b, c, d) to customfield_1801(c,d ,a, b) in your test environment and see what it returns in the Createmeta JSON it should be the newly ordered values in the array, so i think you should feel save.
Best!
@Moses ThomasYes, the createmeta order does change when I reorder the items in the custom field configuration. What I'm hoping for is an Atlassian guarantee that this is reliable. :-)
Thanks for the response!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Moses ThomasMoses, I am still hoping that Atlassian drops by and responds, "Yes, the order of the items in createmeta will always be the same as the order of the items in the field configuration screen."
If that doesn't happen in a few days, I will accept your answer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.