Create Custom Field Options (Context)

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

Creates options and, where the custom select field is of the type Select List (cascading), cascading options for a custom select field. The options are added to a context of the field.

This operation works for custom field options created in Jira or the operations from this resource. To work with issue field select list options created for Connect apps use the Issue custom field options (apps) operations.

Permissions required: Administer Jira global permission.

Request Body

{"options"=>[{"value"=>"<string>", "optionId"=>"<string>", "disabled"=>"<boolean>"}, {"value"=>"<string>", "optionId"=>"<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;optionId&quot;:&quot;10000&quot;,&quot;disabled&quot;:true},{&quot;id&quot;:&quot;10003&quot;,&quot;value&quot;:&quot;The Electric City&quot;,&quot;disabled&quot;:false}]}