jira.js
    Preparing search index...

    Function readWorkflowSchemes

    • Returns a list of workflow schemes by providing workflow scheme IDs or project IDs.

      Permissions required:

      • Administer Jira global permission to access all, including project-scoped, workflow schemes
      • Administer projects project permissions to access project-scoped workflow schemes

      Parameters

      • client: Client
      • parameters: {
            projectIds?: (string | null)[] | null;
            workflowSchemeIds?: (string | null)[] | null;
        }
        • OptionalprojectIds?: (string | null)[] | null

          The list of project IDs to query.

        • OptionalworkflowSchemeIds?: (string | null)[] | null

          The list of workflow scheme IDs to query.

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              defaultWorkflow?: {
                  description: string;
                  id: string;
                  name: string;
                  version: { id?: string; versionNumber?: number; [key: string]: unknown };
                  [key: string]: unknown;
              };
              description?: string
              | null;
              id: string;
              name: string;
              scope: {
                  project?: { id: string; [key: string]: unknown };
                  type?: string & {} | "PROJECT" | "GLOBAL";
                  [key: string]: unknown;
              };
              taskId?: string
              | null;
              version: { id?: string; versionNumber?: number; [key: string]: unknown };
              workflowsForIssueTypes: {
                  issueTypeIds: string[];
                  workflow: {
                      description: string;
                      id: string;
                      name: string;
                      version: { id?: string; versionNumber?: number; [key: string]: unknown };
                      [key: string]: unknown;
                  };
                  [key: string]: unknown;
              }[];
              [key: string]: unknown;
          }[],
      >