Hi, there.
I want to get option list by using the following API on JIRA Cloud.
``/rest/api/2/field/{fieldKey}/option/suggestions/edit
I called this API with several patterns on my browser as JIRA administrator,
https://xxxxxx.atlassian.net/rest/api/2/field/customfield_10500/option/suggestions/edit
https://xxxxxx.atlassian.net/rest/api/2/field/10500/option/suggestions/edit
https://xxxxxx.atlassian.net/rest/api/2/field/SingleSelect/option/suggestions/edit
but all these tries returned 404 error.
{
âerrorMessagesâ: [
âThe field with the given key does not exist or does not support optionsâ
],
âerrorsâ: {}
}
What should I use as {fieldKey}?
(editmeta)
âcustomfield_10500â:{
ârequiredâ:false,
âschemaâ:{
âtypeâ:âoptionâ,
âcustomâ:âcom.atlassian.jira.plugin.system.customfieldtypes:selectâ,
âcustomIdâ:10500
},
ânameâ:âSingleSelectâ,
âkeyâ:âcustomfield_10500â,
âoperationsâ:[
âsetâ
],
âallowedValuesâ:[
{
âselfâ:âhttps://xxxxx.atlassian.net/rest/api/2/customFieldOption/10505â,
âvalueâ:âappleâ,
âidâ:â10505â
},
{
âselfâ:âhttps://xxxxx.atlassian.net/rest/api/2/customFieldOption/10506â,
âvalueâ:âorangeâ,
âidâ:â10506â
}
]
},