jira.js
    Preparing search index...

    Function getVersion

    • Returns a project version.

      This operation can be accessed anonymously.

      Permissions required: Browse projects project permission for the project containing the version.

      Parameters

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

          Use expand to include additional information about version in the response. This parameter accepts a comma-separated list. Expand options include:

          • operations Returns the list of operations available for this version.
          • issuesstatus Returns the count of issues in this version for each of the status categories to do, in progress, done, and unmapped. The unmapped property represents the number of issues with a status other than to do, in progress, and done.
          • driver Returns the Atlassian account ID of the version driver.
          • approvers Returns a list containing the Atlassian account IDs of approvers for this version.
        • id: string

          The ID of the version.

      • 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;
          },
      >