Forums

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

Resolution custom field allowed values

Gokul Ramanan October 7, 2020

There is a custom field and I wanted to get allowed values, this field is not available in editmeta

{
"id": "customfield_11600",
"name": "RMA",
"custom": true,
"orderable": true,
"navigable": true,
"searchable": true,
"clauseNames": [
"cf[11600]",
"RMA"
],
"schema": {
"type": "option",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
"customId": 11600
}
}

 

but when I hit 

https://host/rest/api/2/customField/11600/option

getting a 404 error what could be the reason

 

1 answer

0 votes
Julian Governale
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 Leaders.
October 7, 2020

Saw this in the API doc notes 

Get options for field

GET /rest/api/3/customField/{fieldId}/option

Returns a paginated list of options and, where the custom select field is of the type Select List (cascading), cascading options for custom select fields. Cascading options are included in the item count when determining pagination. Only options from the global context are returned.

Note that this operation only works for issue field select list options created in Jira or using operations from the Issue custom field options resource, it cannot be used with issue field select list options created by Connect apps.

Not positive is your customfield_11600 came from a connect app or if you created it.  I also test rest/api/2 & 3 and for both versions it worked on custom fields I created.  I dont have any from connect apps to test against. 

Gokul Ramanan October 7, 2020

its not working, getting 404 error 

Suggest an answer

Log in or Sign up to answer