jira.js
    Preparing search index...

    Function publishDraftWorkflowScheme

    • Publishes a draft workflow scheme.

      Where the draft workflow includes new workflow statuses for an issue type, mappings are provided to update issues with the original workflow status to the new workflow status.

      This operation is asynchronous. Follow the location link in the response to determine the status of the task and use Get task to obtain updates.

      Permissions required: Administer Jira global permission.

      Parameters

      • client: Client
      • parameters: {
            id: number;
            statusMappings?: {
                issueTypeId: string;
                newStatusId: string;
                statusId: string;
                [key: string]: unknown;
            }[];
            validateOnly?: boolean;
        }
        • id: number

          The ID of the workflow scheme that the draft belongs to.

        • OptionalstatusMappings?: {
              issueTypeId: string;
              newStatusId: string;
              statusId: string;
              [key: string]: unknown;
          }[]

          Mappings of statuses to new statuses for issue types.

        • OptionalvalidateOnly?: boolean

          Whether the request only performs a validation.

      • Optionaloptions: RequestOptions

      Returns Promise<void>