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"
}
}
Use this:
{
"fields": {
"customfield_10166": { "value": "Affiliate"}
}
}
This should help you https://community.atlassian.com/t5/Jira-Service-Management/Trying-to-edit-select-field-with-Value-not-ID/qaq-p/2153992
if the field is field created in Jira UI, it will help you. If the field is a custom connect add on field, you will not be able to set it using the value but only with the ID (still looking for a solution for that myself)
Hope it helps/works for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.