The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any API to list out all custom options for a custom field (Single select list)?

Mani Chellamuthu
Contributor
March 22, 2013

I need to retrieve all custom options for a custom field using Jira API.

customField.getValue() will retrieve stored value for a issue. But I need all values of a custom field for validation.

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 22, 2013
FieldConfig config = customField.getRelevantConfig(issue);
Options options = optionsManager.getOptions(config);
List<Option> optionList = options.getRootOptions();

Mani Chellamuthu
Contributor
March 27, 2013

Thanks Jobin.

TAGS
AUG Leaders

Atlassian Community Events