Hidden options for Custom fields via REST API

Using the JIRA REST API, I'm retrieving values for custom fields using:

/rest/api/2/issue/createmeta &expand=projects.issuetypes.fields

For the custom field, the values evolve - we retire some old, add some new, making the old ones hidden.

I can get all allowed values for an issue type using createmeta, but it returns both hidden and visible options, with no way to identify which is which.

Is there a way to determine if a custom field option is hidden? Or is this a "shortcoming" that should be fixed?

thanks.

2 answers

This widget could not be displayed.

I think currently it is not possible to get disabled property of an option. The getDisabled method of the Option class is used only on one place and it is the com.atlassian.jira.issue.customfields.config.item.SettableOptionsConfigItem.getViewHtml(FieldConfig, FieldLayoutItem)

Here're some other related questions :

https://answers.atlassian.com/questions/242922/rest-api-for-custom-field-option-does-not-show-disabled-flag

https://answers.atlassian.com/questions/199122/how-to-get-the-disable-flag-in-custom-field-option-via-rest

This widget could not be displayed.

There is now a JIRA feature request for this:

https://jira.atlassian.com/browse/JRASERVER-60274

 

Please go vote!

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 yesterday 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...

78 views 1 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