The "editmeta" response for a given issue includes this definition for one of the custom fields:
"customfield_10166": {
"required": false,
"schema": {
"type": "option",
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
"customId": 10166
},
"name": "Engineer Type",
"key": "customfield_10166",
"operations": [
"set"
],
"allowedValues": [
{
"self": "https://linaro-development.atlassian.net/rest/api/3/customFieldOption/10331",
"value": "Assignee",
"id": "10331"
},
{
"self": "https://linaro-development.atlassian.net/rest/api/3/customFieldOption/10332",
"value": "Member",
"id": "10332"
},
{
"self": "https://linaro-development.atlassian.net/rest/api/3/customFieldOption/10333",
"value": "Affiliate",
"id": "10333"
}
]
}
If I try to set this field (e.g. with PUT /rest/api/latest/issue/<key>) on an issue with this body:
{
"fields": {
"customfield_10166": "Affiliate"
}
}
it fails with this error: Specify a valid 'id' or 'name' for Engineer Type
I've tried the alternative format of specifying a value (using "update" instead of "fields") but I get the same error.
What am I doing wrong, please?