jira.js
    Preparing search index...

    Function assignProjectsToCustomFieldContext

    • Assigns a custom field context to projects.

      If any project in the request is assigned to any context of the custom field, the operation fails.

      This API will not allow adding projects 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

      • client: Client
      • parameters: { contextId: number; fieldId: string; projectIds: string[] }
        • contextId: number

          The ID of the context.

        • fieldId: string

          The ID of the custom field.

        • projectIds: string[]

          The IDs of projects.

      • Optionaloptions: RequestOptions

      Returns Promise<void>