jira.js
    Preparing search index...

    Function getAllStatuses

    • Returns the valid statuses for a project. The statuses are grouped by issue type, as each project has a set of valid issue types and each issue type has a set of valid statuses.

      This operation can be accessed anonymously.

      Permissions required: Browse Projects project permission for the project.

      Parameters

      • client: Client
      • parameters: { projectIdOrKey: string }
        • projectIdOrKey: string

          The project ID or project key (case sensitive).

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              id: string;
              name: string;
              self: string;
              statuses: {
                  description?: string;
                  iconUrl?: string;
                  id?: string;
                  name?: string;
                  scope?: {
                      project?: {
                          avatarUrls?: {
                              "16x16"?: ...;
                              "24x24"?: ...;
                              "32x32"?: ...;
                              "48x48"?: ...;
                              [key: ...]: ...;
                          };
                          id?: string;
                          key?: string;
                          name?: string;
                          projectCategory?: {
                              description?: ...;
                              id?: ...;
                              name?: ...;
                              self?: ...;
                              [key: ...]: ...;
                          };
                          projectTypeKey?: | (...) & (...)
                          | "software"
                          | "service_desk"
                          | "business"
                          | "product_discovery"
                          | "customer_service";
                          self?: string;
                          simplified?: boolean;
                          [key: string]: unknown;
                      };
                      type?: string & {}
                      | "PROJECT"
                      | "TEMPLATE";
                      [key: string]: unknown;
                  };
                  self?: string;
                  statusCategory?: {
                      colorName?: string;
                      id?: number;
                      key?: string;
                      name?: string;
                      self?: string;
                      [key: string]: unknown;
                  };
                  untranslatedName?: string;
                  [key: string]: unknown;
              }[];
              subtask: boolean;
              [key: string]: unknown;
          }[],
      >