deleteVersion method

  1. @deprecated
Future<void> deleteVersion({
  1. required String id,
  2. String? moveFixIssuesTo,
  3. String? moveAffectedIssuesTo,
})

Deletes a project version.

Deprecated, use Delete and replace version that supports swapping version values in custom fields, in addition to the swapping for fixVersion and affectedVersion provided in this resource.

Alternative versions can be provided to update issues that use the deleted version in fixVersion or affectedVersion. If alternatives are not provided, occurrences of fixVersion and affectedVersion that contain the deleted version are cleared.

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

@deprecated
Future<void> deleteVersion(
    {required String id,
    String? moveFixIssuesTo,
    String? moveAffectedIssuesTo}) async {
  await _client.send(
    'delete',
    'rest/api/3/version/{id}',
    pathParameters: {
      'id': id,
    },
    queryParameters: {
      if (moveFixIssuesTo != null) 'moveFixIssuesTo': moveFixIssuesTo,
      if (moveAffectedIssuesTo != null)
        'moveAffectedIssuesTo': moveAffectedIssuesTo,
    },
  );
}