moveVersion method

Future<Version> moveVersion({
  1. required String id,
  2. required VersionMoveBean body,
})

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.

Implementation

Future<Version> moveVersion(
    {required String id, required VersionMoveBean body}) async {
  return Version.fromJson(await _client.send(
    'post',
    'rest/api/3/version/{id}/move',
    pathParameters: {
      'id': id,
    },
    body: body.toJson(),
  ));
}