mergeVersions method

Future mergeVersions({
  1. required String id,
  2. required String moveIssuesTo,
})

Merges two project versions. The merge is completed by deleting the version specified in id and replacing any occurrences of its ID in fixVersion with the version ID specified in moveIssuesTo.

Consider using Delete and replace version instead. This resource supports swapping version values in fixVersion, affectedVersion, and custom fields.

This operation can be accessed anonymously.

Permissions required: Administer Jira global permission or Administer Projects project permission for the project that contains the version.

Implementation

Future<dynamic> mergeVersions(
    {required String id, required String moveIssuesTo}) async {
  return await _client.send(
    'put',
    'rest/api/3/version/{id}/mergeto/{moveIssuesTo}',
    pathParameters: {
      'id': id,
      'moveIssuesTo': moveIssuesTo,
    },
  );
}