jira.js
    Preparing search index...

    Function getProjectVersions

    • Returns all versions in a project. The response is not paginated. Use Get project versions paginated if you want to get the versions in a project with pagination.

      This operation can be accessed anonymously.

      Permissions required: Browse Projects project permission for the project.

      Parameters

      • client: Client
      • parameters: {
            expand?:
                | string
                | string[]
                | string & {}
                | (string & {} | "operations")[];
            projectIdOrKey: string;
        }
        • Optionalexpand?: string | string[] | string & {} | (string & {} | "operations")[]

          Use expand to include additional information in the response. This parameter accepts operations, which returns actions that can be performed on the version.

        • projectIdOrKey: string

          The project ID or project key (case sensitive).

      • Optionaloptions: RequestOptions

      Returns Promise<
          {
              approvers?: {
                  accountId?: string;
                  declineReason?: string;
                  description?: string;
                  status?: string;
                  [key: string]: unknown;
              }[];
              archived?: boolean;
              description?: string;
              driver?: string;
              expand?: string;
              id?: string;
              issuesStatusForFixVersion?: {
                  done?: number;
                  inProgress?: number;
                  toDo?: number;
                  unmapped?: number;
                  [key: string]: unknown;
              };
              moveUnfixedIssuesTo?: string;
              name?: string;
              operations?: {
                  href?: string;
                  iconClass?: string;
                  id?: string;
                  label?: string;
                  styleClass?: string;
                  title?: string;
                  weight?: number;
                  [key: string]: unknown;
              }[];
              overdue?: boolean;
              projectId?: number;
              released?: boolean;
              releaseDate?: string;
              self?: string;
              startDate?: string;
              userReleaseDate?: string;
              userStartDate?: string;
              [key: string]: unknown;
          }[],
      >