Update Custom Field Options (Context)

PUT {{baseUrl}}/rest/api/3/field/:fieldId/context/:contextId/option

Updates the options of a custom field.

If any of the options are not found, no options are updated. Options where the values in the request match the current values aren't updated and aren't reported in the response.

Note that this operation only works for issue field select list options created in Jira or using operations from the Issue custom field options resource, it cannot be used with issue field select list options created by Connect apps.

Permissions required: Administer Jira global permission.

Request Body

{"options"=>[{"id"=>"<string>", "value"=>"<string>", "disabled"=>"<boolean>"}, {"id"=>"<string>", "value"=>"<string>", "disabled"=>"<boolean>"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;options&quot;:[{&quot;id&quot;:&quot;10001&quot;,&quot;value&quot;:&quot;Scranton&quot;,&quot;disabled&quot;:false},{&quot;id&quot;:&quot;10002&quot;,&quot;value&quot;:&quot;Manhattan&quot;,&quot;disabled&quot;:true},{&quot;id&quot;:&quot;10003&quot;,&quot;value&quot;:&quot;The Electric City&quot;,&quot;disabled&quot;:false}]}