jira.js
    Preparing search index...

    Function addIssueTypesToContext

    • 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

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

          The ID of the context.

        • fieldId: string

          The ID of the custom field.

        • issueTypeIds: string[]

          The list of issue type IDs.

      • Optionaloptions: RequestOptions

      Returns Promise<void>