Skip to content

Function: removeCustomFieldContextFromProjects() ​

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

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

Removes a custom field context from projects.

A custom field context without any projects applies to all projects. Removing all projects from a custom field context would result in it applying to all projects.

If any project in the request is not assigned to the context, or the operation would result in two global contexts for the field, the operation fails.

Permissions required:Administer Jira global permission.

Parameters ​

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

Returns ​

Promise<void>