{
"opencollection": "1.0.0",
"info": {
"name": "Atlassian Admin Account Project Versions API",
"version": "1.0.0"
},
"request": {
"auth": {
"type": "bearer",
"token": "{{bearerToken}}"
}
},
"items": [
{
"info": {
"name": "Project Versions",
"type": "folder"
},
"items": [
{
"info": {
"name": "Atlassian Get Project Versions Paginated",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.atlassian.com/rest/api/3/project/:projectIdOrKey/version",
"params": [
{
"name": "projectIdOrKey",
"value": "",
"type": "path",
"description": "The project ID or project key (case sensitive)."
},
{
"name": "startAt",
"value": "",
"type": "query",
"description": "The index of the first item to return in a page of results (page offset)."
},
{
"name": "maxResults",
"value": "",
"type": "query",
"description": "The maximum number of items to return per page."
},
{
"name": "orderBy",
"value": "",
"type": "query",
"description": "[Order](#ordering) the results by a field:\n\n * `description` Sorts by version description.\n * `name` Sorts by version name.\n * `releaseDate` Sorts by release date, starting with the oldest date. Versions with no release date are listed last.\n * `sequence` Sorts by the order of appearance in the user interface.\n * `startDate` Sorts by start date, starting with the oldest date. Versions with no start date are listed last."
},
{
"name": "query",
"value": "",
"type": "query",
"description": "Filter the results using a literal string. Versions with matching `name` or `description` are returned (case insensitive)."
},
{
"name": "status",
"value": "",
"type": "query",
"description": "A list of status values used to filter the results by version status. This parameter accepts a comma-separated list. The status values are `released`, `unreleased`, and `archived`."
},
{
"name": "expand",
"value": "",
"type": "query",
"description": "Use [expand](#expansion) to include additional information in the response. This parameter accepts a comma-separated list. Expand options include:\n\n * `issuesstatus` Returns the number of issues in each status category for each version.\n * `operations` Returns actions that can be performed on the specified version.\n * `driver` Returns the Atlassian account ID of the version driver.\n * `approvers` Returns a list containing the approvers for this version."
}
]
},
"docs": "Returns a [paginated](#pagination) list of all versions in a project. See the [Get project versions](#api-rest-api-3-project-projectIdOrKey-versions-get) resource if you want to get a full list of versions without pagination.
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** *Browse Projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project."
},
{
"info": {
"name": "Atlassian Get Project Versions",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.atlassian.com/rest/api/3/project/:projectIdOrKey/versions",
"params": [
{
"name": "projectIdOrKey",
"value": "",
"type": "path",
"description": "The project ID or project key (case sensitive)."
},
{
"name": "expand",
"value": "",
"type": "query",
"description": "Use [expand](#expansion) to include additional information in the response. This parameter accepts `operations`, which returns actions that can be performed on the version."
}
]
},
"docs": "Returns all versions in a project. The response is not paginated. Use [Get project versions paginated](#api-rest-api-3-project-projectIdOrKey-version-get) if you want to get the versions in a project with pagination.
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** *Browse Projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project."
},
{
"info": {
"name": "Atlassian Get Version",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.atlassian.com/rest/api/3/version/:id",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the version."
},
{
"name": "expand",
"value": "",
"type": "query",
"description": "Use [expand](#expansion) to include additional information about version in the response. This parameter accepts a comma-separated list. Expand options include:\n\n * `operations` Returns the list of operations available for this version.\n * `issuesstatus` Returns the count of issues in this version for each of the status categories *to do*, *in progress*, *done*, and *unmapped*. The *unmapped* property represents the number of issues with a status other than *to do*, *in progress*, and *done*.\n * `driver` Returns the Atlassian account ID of the version driver.\n * `approvers` Returns a list containing the Atlassian account IDs of approvers for this version."
}
]
},
"docs": "Returns a project version.
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** *Browse projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project containing the version."
},
{
"info": {
"name": "Atlassian Update Version",
"type": "http"
},
"http": {
"method": "PUT",
"url": "https://api.atlassian.com/rest/api/3/version/:id",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the version."
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Updates a project version.
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg) or *Administer Projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project that contains the version."
},
{
"info": {
"name": "Atlassian Delete Version",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://api.atlassian.com/rest/api/3/version/:id",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the version."
},
{
"name": "moveFixIssuesTo",
"value": "",
"type": "query",
"description": "The ID of the version to update `fixVersion` to when the field contains the deleted version. The replacement version must be in the same project as the version being deleted and cannot be the version being deleted."
},
{
"name": "moveAffectedIssuesTo",
"value": "",
"type": "query",
"description": "The ID of the version to update `affectedVersion` to when the field contains the deleted version. The replacement version must be in the same project as the version being deleted and cannot be the version being deleted."
}
]
},
"docs": "Deletes a project version.
Deprecated, use [ Delete and replace version](#api-rest-api-3-version-id-removeAndSwap-post) 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 contai"
},
{
"info": {
"name": "Atlassian Merge Versions",
"type": "http"
},
"http": {
"method": "PUT",
"url": "https://api.atlassian.com/rest/api/3/version/:id/mergeto/:moveIssuesTo",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the version to delete."
},
{
"name": "moveIssuesTo",
"value": "",
"type": "path",
"description": "The ID of the version to merge into."
}
]
},
"docs": "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](#api-rest-api-3-version-id-removeAndSwap-post) instead. This resource supports swapping version values in `fixVersion`, `affectedVersion`, and custom fields.
This operation can be accessed anonymously.
**[Permissions](#permissions) req"
},
{
"info": {
"name": "Atlassian Move Version",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api.atlassian.com/rest/api/3/version/:id/move",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the version to be moved."
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "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](#permissions) required:** *Browse projects* project permission for the project that contains the version."
},
{
"info": {
"name": "Atlassian Get Version S Related Issues Count",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.atlassian.com/rest/api/3/version/:id/relatedIssueCounts",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the version."
}
]
},
"docs": "Returns the following counts for a version:
* Number of issues where the `fixVersion` is set to the version.
* Number of issues where the `affectedVersion` is set to the version.
* Number of issues where a version custom field is set to the version.
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** *Browse projects* project permission for the project that contains the version."
},
{
"info": {
"name": "Atlassian Get Related Work",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.atlassian.com/rest/api/3/version/:id/relatedwork",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the version."
}
]
},
"docs": "Returns related work items for the given version id.
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** *Browse projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project containing the version."
},
{
"info": {
"name": "Atlassian Create Related Work",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api.atlassian.com/rest/api/3/version/:id/relatedwork",
"params": [
{
"name": "id",
"value": "",
"type": "path"
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Creates a related work for the given version. You can only create a generic link type of related works via this API. relatedWorkId will be auto-generated UUID, that does not need to be provided.
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** *Resolve issues:* and *Edit issues* [Managing project permissions](https://confluence.atlassian.com/adminjiraserver/managing-project-permissions-938847145.html) for the project that contains the version."
},
{
"info": {
"name": "Atlassian Update Related Work",
"type": "http"
},
"http": {
"method": "PUT",
"url": "https://api.atlassian.com/rest/api/3/version/:id/relatedwork",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the version to update the related work on. For the related work id, pass it to the input JSON."
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Updates the given related work. You can only update generic link related works via Rest APIs. Any archived version related works can't be edited.
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** *Resolve issues:* and *Edit issues* [Managing project permissions](https://confluence.atlassian.com/adminjiraserver/managing-project-permissions-938847145.html) for the project that contains the version."
},
{
"info": {
"name": "Atlassian Delete And Replace Version",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api.atlassian.com/rest/api/3/version/:id/removeAndSwap",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the version."
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "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 "
},
{
"info": {
"name": "Atlassian Get Version S Unresolved Issues Count",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.atlassian.com/rest/api/3/version/:id/unresolvedIssueCount",
"params": [
{
"name": "id",
"value": "",
"type": "path",
"description": "The ID of the version."
}
]
},
"docs": "Returns counts of the issues and unresolved issues for the project version.
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** *Browse projects* project permission for the project that contains the version."
},
{
"info": {
"name": "Atlassian Delete Related Work",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://api.atlassian.com/rest/api/3/version/:versionId/relatedwork/:relatedWorkId",
"params": [
{
"name": "versionId",
"value": "",
"type": "path",
"description": "The ID of the version that the target related work belongs to."
},
{
"name": "relatedWorkId",
"value": "",
"type": "path",
"description": "The ID of the related work to delete."
}
]
},
"docs": "Deletes the given related work for the given version.
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** *Resolve issues:* and *Edit issues* [Managing project permissions](https://confluence.atlassian.com/adminjiraserver/managing-project-permissions-938847145.html) for the project that contains the version."
},
{
"info": {
"name": "Atlassian Create Version",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api.atlassian.com/rest/api/3/version",
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Creates a project version.
This operation can be accessed anonymously.
**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg) or *Administer Projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project the version is added to."
}
]
}
],
"bundled": true
}