jira.js
    Preparing search index...

    Function getWorkflow

    • Returns the workflow mappings or requested mapping to the caller for the passed scheme.

      Parameters

      • client: Client
      • parameters: { id: number; returnDraftIfExists?: boolean; workflowName?: string }
        • id: number

          The id of the scheme.

        • OptionalreturnDraftIfExists?: boolean

          When true indicates that a scheme's draft, if it exists, should be queried instead of the scheme itself.

        • OptionalworkflowName?: string

          The workflow mapping to return. Null can be passed to return all mappings. Must be a valid workflow name.

      • Optionaloptions: RequestOptions

      Returns Promise<
          | {
              defaultMapping?: boolean;
              issueTypes?: string[];
              updateDraftIfNeeded?: boolean;
              workflow?: string;
              [key: string]: unknown;
          }
          | {
              defaultMapping?: boolean;
              issueTypes?: string[];
              updateDraftIfNeeded?: boolean;
              workflow?: string;
              [key: string]: unknown;
          }[],
      >