jira.js
    Preparing search index...

    Function moveVersion

    • Modifies the version's sequence within the project, which affects the display order of the versions in Jira.

      This operation can be accessed anonymously.

      Permissions required: Browse projects project permission for the project that contains the version.

      Parameters

      • client: Client
      • parameters: {
            after?: string;
            id: string;
            position?: string & {} | "Earlier" | "Later" | "First" | "Last";
        }
        • Optionalafter?: string

          The URL (self link) of the version after which to place the moved version. Cannot be used with position.

        • id: string

          The ID of the version to be moved.

        • Optionalposition?: string & {} | "Earlier" | "Later" | "First" | "Last"

          An absolute position in which to place the moved version. Cannot be used with after.

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