Hi,
Needing to get the options for custom fields in Jira Server. I am able to get a list of the custom fields and a single value for a custom field.
However, am not able to get the list of options for a custom field (customfieldID_XXXX).
I have trawled everywhere and cannot find a solution.
Any suggestions would be of great help.
Thanks.
for Jira Server:
If you know the project and the issuetype that the field was used, you can try:
https://{jirahost}/rest/api/2/issue/createmeta?projectKeys={projectKey}&issuetypeNames={issuetypeName}&expand=projects.issuetypes.fields
If you know the issue that the field was used, you can try:
https://{jirahost}/rest/api/2/issue/{issueIdOrKey}/editmeta
Good luck.
With ScriptRunner e.g. in the Console you could access the values - see https://library.adaptavist.com/entity/update-the-value-of-custom-fields-through-the-script-console
From the Rest API this looks like a proper way: https://confluence.atlassian.com/jirakb/how-to-retrieve-available-options-for-a-multi-select-customfield-via-jira-rest-api-815566715.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Tim Benton
How are you trying to get this information? Are you trying to get it with the API or the UI?
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.
Hi @Tim Benton Are you trying to get Field values/list of options using REST API ?
Thanks!
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.
This is not possible with REST API. There is no call for this. For the customFieldOption call you have to know the id, but it is at all returned when querying an issue.
Try this workaround :- https://confluence.atlassian.com/jirakb/how-to-retrieve-available-options-for-a-multi-select-customfield-via-jira-rest-api-815566715.html
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.
If you have jira admin permission , you can go to custom fields and check values of that custom field.
otherwise you can see available values while creating an issue.
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.