I'm attempting to a list of all allowed values for a custom-single select field using the v3 API and frankly, it's making me lose my ever-loving mind.
1. Fetch ID of custom field
```
/rest/api/latest/field
```
2. Inspect response for ID
```json
{
"id": "customfield_10252",
"key": "customfield_10252",
"name": "Employer Partner",
"untranslatedName": "Employer Partner",
"custom": true,
"orderable": true,
"navigable": true,
"searchable": true,
"clauseNames": [
"cf[10252]",
"Employer Partner",
"Employer Partner[Dropdown]"
],
"schema": {
"type": "option",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
"customId": 10252
}
},
```
3. Pass ID (`10252`) to `customFieldOption` end-point
```
/rest/api/3/customFieldOption/10252
```
4. Get back different (wrong) field
```json
{
"self": "/rest/api/3/customFieldOption/10252",
"value": "BAU (ongoing support, maintaining operations)"
}
```
BAU isn't even one of the dropdown/single-select options. Obviously, I'm doing something wrong, any pointers?
_FYI I'm aware I can use the editmeta end-point (`/rest/api/3/issue/GR-1/editmeta`) but that requires a known ticket ID and it brings back a much larger payload._