Hello,
I have some difficulties to retrieve options from a Next gen dropdown fields.
I create 2 fields:
- a dropdown (select) customfield (customfield_10136)
- a next gen dropdown fields (customfield_10135)
https://xxxxxxxxxxxxxxxxxx.atlassian.net/rest/api/3/field
{
"id": "customfield_10135",
"key": "customfield_10135",
"name": "[nextgen] Dropdown",
"untranslatedName": "[nextgen] Dropdown",
"custom": true,
"orderable": true,
"navigable": true,
"searchable": true,
"clauseNames": [
"[nextgen] Dropdown",
"[nextgen] Dropdown[Dropdown]",
"cf[10135]"
],
"scope": {
"type": "PROJECT",
"project": {
"id": "10009"
}
},
"schema": {
"type": "option",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
"customId": 10135
}
},
{
"id": "customfield_10136",
"key": "customfield_10136",
"name": "Dropdown CF",
"untranslatedName": "Dropdown CF",
"custom": true,
"orderable": true,
"navigable": true,
"searchable": true,
"clauseNames": [
"cf[10136]",
"Dropdown CF",
"Dropdown CF[Dropdown]"
],
"schema": {
"type": "option",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
"customId": 10136
}
},
Now I want to retrieve the context of my fields in order to call the new “retrieve options” endpoint:
With a customfield the new end point works fine:
https://xxxxxxxxxxxx.atlassian.net/rest/api/3/field/customfield_10136/context
{
"maxResults": 50,
"startAt": 0,
"total": 1,
"isLast": true,
"values": [
{
"id": "10244",
"name": "Default Configuration Scheme for Dropdown CF",
"description": "Default configuration scheme generated by Jira",
"isGlobalContext": true,
"isAnyIssueType": true
}
]
}
But with my next gen dropdown fields I get the following error:
https://xxxxxxxxxxx.atlassian.net/rest/api/3/field/customfield_10135/context
{
"errorMessages": [
"The custom field was not found."
],
"errors": {}
}
No context given: I can’t use the endpoint to retrieve my options:
https://xxxxxxxxxxxxxxx.atlassian.net/rest/api/3/field/customfield_10135/context/???/option
am I using the correct method to retrieve option of a next gen dropdown fields ?
Thank you in advance !
Kind regards,
Basile Grandperret