Create Custom Field Context

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

Creates a custom field context.

If projectIds is empty, a global context is created. A global context is one that applies to all project. If issueTypeIds is empty, the context applies to all issue types.

Permissions required: Administer Jira global permission.

Request Body

{"name"=>"<string>", "description"=>"<string>", "projectIds"=>["<string>", "<string>"], "issueTypeIds"=>["<string>", "<string>"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{&quot;id&quot;:&quot;10025&quot;,&quot;name&quot;:&quot;Bug fields context&quot;,&quot;description&quot;:&quot;A context used to define the custom field options for bugs.&quot;,&quot;projectIds&quot;:[],&quot;issueTypeIds&quot;:[&quot;10010&quot;]}