Skip to content

Function: addIssueTypesToContext() ​

ts
function addIssueTypesToContext(
   client, 
   parameters, 
   options?
): Promise<void>;

Defined in: src/cloud/api/issueCustomFieldContexts.ts:299

Adds issue types to a custom field context, appending the issue types to the issue types list.

A custom field context without any issue types applies to all issue types. Adding issue types to such a custom field context would result in it applying to only the listed issue types.

If any of the issue types exists in the custom field context, the operation fails and no issue types are added.

This API will not allow adding issue types to the global context from April 2026. Instead, an HTTP 400 response will be returned. See CHANGE-3019

Permissions required:Administer Jira global permission.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ contextId: number; fieldId: string; issueTypeIds: string[]; }-
parameters.contextIdnumberThe ID of the context.
parameters.fieldId?stringThe ID of the custom field.
parameters.issueTypeIds?string[]The list of issue type IDs.
options?RequestOptions-

Returns ​

Promise<void>