I can do a GET to a URL and retrieve all of the createmeta values.
/rest/api/2/issue/createmeta?expand=projects.issuetypes.fields&projectKeys=PSS
In our case it returns almost 18k lines of JSON. I would prefer to only get the allowed values for a specific custom field.
So a URL of something like this:
/rest/api/2/issue/createmeta?expand=projects.issuetypes.fields&projectKeys=PSS&field=customfield_10901
That would only return the information regarding that one specific field.
Is this currently possible?
thanks,
lee
Hello Lee,
Do you mean to get select custom field options via REST? There is no such feature to get a single custom field option.
Besides, the json you aforementioned returns all values including enabled and disabled, and it does not have indicator so you can not know whether the option is enabled or not.
There is an open ticket in Jira for this one.
Anyway, there is no out-of-box solution yet. However Enhancer Plugin has custom field options REST service which gives only the options of a select custom field for given context (project, issue type).
Well that's unfortunate. I was hoping I was doing something wrong or couldn't find the right documentation.
thanks for the information,
lee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Alternative to the suggestion from Tuncay you can:
Note: I belong to the vendor's support of the 'REST Extender'.
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.