v4

latestOpenAPI 3.0.1Apache 2.02026-08-016169702.3 MB
Project versions

Delete and replace version

Deletes a project version.

Alternative versions can be provided to update issues that use the deleted version in fixVersion, affectedVersion, or any version picker custom fields. If alternatives are not provided, occurrences of fixVersion, affectedVersion, and any version picker custom field, that contain the deleted version, are cleared. Any replacement version must be in the same project as the version being deleted and cannot be the version being deleted.

This operation can be accessed anonymously.

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

post/rest/api/3/version/{id}/removeAndSwap

Path parameters

idstring required

The ID of the version.

Request body

moveAffectedIssuesTointeger

The ID of the version to update affectedVersion to when the field contains the deleted version.

moveFixIssuesTointeger

The ID of the version to update fixVersion to when the field contains the deleted version.

Response

Returned if the version is deleted.

{"stackTrail":"paths:/rest/api/3/version/{id}/removeAndSwap:post:responses:204:content:application/json:schema","oasType":"schema","type":"unknown"}