Function: moveVersion()
ts
function moveVersion(
client,
parameters,
options?
): Promise<{
[key: string]: unknown;
archived?: boolean;
description?: string;
expand?: string;
id?: string;
moveUnfixedIssuesTo?: string;
name?: string;
overdue?: boolean;
project?: string;
projectId?: number;
released?: boolean;
releaseDate?: Date;
releaseDateSet?: boolean;
self?: string;
startDate?: Date;
startDateSet?: boolean;
userReleaseDate?: string;
userStartDate?: string;
}>;Defined in: src/server/api/projectVersions.ts:153
Modify a version's sequence within a project. The move version bean has 2 alternative field value pairs:
- Position: An absolute position, which may have a value of 'First', 'Last', 'Earlier' or 'Later'
- After: A version to place this version after. The value should be the self link of another version
Parameters
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { after?: string; id: string; position?: string & object | "Earlier" | "Later" | "First" | "Last"; } | - |
parameters.after? | string | - |
parameters.id? | string | ID of the version. |
parameters.position? | string & object | "Earlier" | "Later" | "First" | "Last" | - |
options? | RequestOptions | - |
Returns
Promise<{ [key: string]: unknown; archived?: boolean; description?: string; expand?: string; id?: string; moveUnfixedIssuesTo?: string; name?: string; overdue?: boolean; project?: string; projectId?: number; released?: boolean; releaseDate?: Date; releaseDateSet?: boolean; self?: string; startDate?: Date; startDateSet?: boolean; userReleaseDate?: string; userStartDate?: string; }>