Move an issue to another queue using an API request
Use this request to move an issue to a different queue.
POST
https://api.tracker.yandex.net/v3/issues/<issue_ID>/_move?queue=<queue_key>
Before executing the request, make sure the user has permission to edit the issues to be moved and is allowed to create them in the new queue.
If an issue you want to move has a type and status that are missing in the target queue, no transfer will be made. To reset the issue status to the initial value when moving it, use the InitialStatus
parameter.
By default, when an issue is moved, the values of its components, versions, and projects are cleared. If the new queue has the same values of the fields specified, use the MoveAllFields
parameter to move the components, versions, and projects.
If the issue has the local field values specified, they will be reset when moving the issue to a different queue.
Query format
Before making a request, get permission to access the API.
To move issues, use an HTTP POST
request:
POST /v3/issues/<issue_ID>/_move?queue=<queue_key>
Host: api.tracker.yandex.net
Authorization: OAuth <OAuth_token>
X-Org-ID or X-Cloud-Org-ID: <organization_ID>
Headers
-
Host
: Address of the node that provides the API. -
Authorization
: Authorization token about these formats:-
OAuth <OAuth_token>
: For authorization using the OAuth 2.0 protocol. Learn more -
Bearer <IAM_token>
: For authorization using an IAM token, if a Yandex Cloud Organization organization is linked to Tracker. Learn more
-
-
X-Org-ID
orX-Cloud-Org-ID
: Organization ID.-
Use the
X-Org-ID
header if a Tracker organization is linked to Yandex 360 for Business. -
Use the
X-Cloud-Org-ID
header if a Tracker organization is linked to Yandex Cloud Organization.
To get the organization ID, go to Administration → Organizations and copy the value from the ID field.
-
Resource
Parameter | Description | Data type |
---|---|---|
<issue_key_or_ID> | ID or key of the current issue. | String |
Request parameters
Required parameters
Parameter | Description | Data type |
---|---|---|
<queue_key> | Key of the queue to move the issue to. | String |
Additional parameters
Parameter | Description | Data type |
---|---|---|
notify | Flag indicating if users should be notified about issue changes:
|
Boolean |
notifyAuthor | Flag notifying the issue reporter:
|
Boolean |
moveAllFields | Shows whether to move the issue's versions, components, and projects to the new queue:
|
Boolean |
initialStatus | Resetting the issue status. Reset the status when moving an issue to a queue with a different workflow:
|
Boolean |
expand | Additional fields to include in the response:
|
String |
Request body parameters
You can use the request body if you need to change the parameters of the issue being moved. The request body has the same format as when editing issues.
Example: Moving an issue
- An HTTP POST method is used.
- Moving the TEST-1 issue to the NEW queue.
POST https://api.tracker.yandex.net/v3/issues/TEST-1/_move?queue=NEW
Response format
If the request is successful, the API returns a response with code 200 OK
.
The response body contains the results in JSON format.
{
"self": "https://api.tracker.yandex.net/v3/issues/NEW-1",
"id": "1a********",
"key": "NEW-1",
"version": 2,
"aliases": [
"TEST-1"
],
"previousQueue": {
"self": "https://api.tracker.yandex.net/v3/queues/TEST",
"id": "3",
"key": "TEST",
"display": "TEST"
},
"description": "Move the issue to a new queue",
"type": {
"self": "https://api.tracker.yandex.net/v3/issuetypes/2",
"id": "2",
"key": "task",
"display": "Issue"
},
"createdAt": "2020-09-04T14:18:56.776+0000",
"updatedAt": "2020-11-12T12:38:19.040+0000",
"lastCommentUpdatedAt": "2020-10-18T13:33:44.291+0000",
},
"summary": "Test",
"updatedBy": {
"self": "https://api.tracker.yandex.net/v3/users/12********",
"id": "12********",
"display": "Ivan Ivanov"
},
"priority": {
"self": "https://api.tracker.yandex.net/v3/priorities/3",
"id": "3",
"key": "normal",
"display": "Normal"
},
"followers": [
{
"self": "https://api.tracker.yandex.net/v3/users/12********",
"id": "12********",
"display": "Ivan Ivanov"
}
],
"createdBy": {
"self": "https://api.tracker.yandex.net/v3/users/12********",
"id": "12********",
"display": "Ivan Ivanov"
},
"assignee": {
"self": "https://api.tracker.yandex.net/v3/users/12********",
"id": "12********",
"display": "Ivan Ivanov"
},
"queue": {
"self": "https://api.tracker.yandex.net/v3/queues/NEW",
"id": "5",
"key": "NEW",
"display": "Queue"
},
"status": {
"self": "https://api.tracker.yandex.net/v3/statuses/8",
"id": "1",
"key": "open",
"display": "Open"
},
"previousStatus": {
"self": "https://api.tracker.yandex.net/v3/statuses/1",
"id": "1",
"key": "open",
"display": "Open"
},
"favorite": false
}
Response parameters
Parameter | Description | Data type |
---|---|---|
self | Address of the API resource with information about the issue. | String |
id | Issue ID. | String |
key | Issue key. | String |
version | Issue version. Each change to the issue parameters increases its version number. Issue edits will be disabled if the version number reaches the threshold value of 10100 (for robots) or 11100 (for users). |
Number |
aliases | Array with information about alternative issue keys. | Array of strings |
previousQueue | Object with information about the issue's previous queue. | Map item |
description | Issue description. | String |
type | Object with information about the issue type. | Map item |
createdAt | Issue creation date and time. | String |
updatedAt | Issue update date and time. | String |
lastCommentUpdatedAt | Date and time when the last comment was added. | String |
summary | Issue name. | String |
updatedBy | Object with information about the user who edited the issue last. | Map item |
priority | Object with information about the priority. | Map item |
followers | Array of objects with information about issue followers. | Array of strings |
createdBy | Object with information about the user who created the issue. | Map item |
assignee | Object with information about the issue's assignee. | Map item |
queue | Object with information about the issue queue. | Map item |
status | Object with information about the issue status. | Map item |
previousStatus | Object with information about the previous status of the issue. | Map item |
favorite | Favorite issue flag:
|
Boolean |
previousQueue
object fields
Parameter | Description | Data type |
---|---|---|
self | Address of the API resource with information about the queue. | String |
id | Queue ID. | String |
key | Queue key. | String |
display | Queue name displayed. | String |
type
object fields
Parameter | Description | Data type |
---|---|---|
self | Address of the API resource with information about the issue type. | String |
id | Issue type ID | String |
key | Issue type key. | String |
display | Issue type name displayed. | String |
updatedBy
object fields
Parameter | Description | Data type |
---|---|---|
self | Address of the API resource with information about the user | String |
id | User ID. | String |
display | Displayed user name | String |
passportUid | Unique ID of the user account in the Yandex 360 for Business organization and Yandex ID. | Number |
cloudUid | Unique user ID in Yandex Cloud Organization | String |
priority
object fields
Parameter | Description | Data type |
---|---|---|
self | Address of the API resource with information about the priority. | String |
id | Priority ID | String |
key | Priority key. | String |
display | Priority name displayed. | String |
followers
array object fields
Parameter | Description | Data type |
---|---|---|
self | Address of the API resource with information about the user | String |
id | User ID. | String |
display | Displayed user name | String |
passportUid | Unique ID of the user account in the Yandex 360 for Business organization and Yandex ID. | Number |
cloudUid | Unique user ID in Yandex Cloud Organization | String |
createdBy
object fields
Parameter | Description | Data type |
---|---|---|
self | Address of the API resource with information about the user | String |
id | User ID. | String |
display | Displayed user name | String |
passportUid | Unique ID of the user account in the Yandex 360 for Business organization and Yandex ID. | Number |
cloudUid | Unique user ID in Yandex Cloud Organization | String |
assignee
object fields
Parameter | Description | Data type |
---|---|---|
self | Address of the API resource with information about the user | String |
id | User ID. | String |
display | Displayed user name | String |
passportUid | Unique ID of the user account in the Yandex 360 for Business organization and Yandex ID. | Number |
cloudUid | Unique user ID in Yandex Cloud Organization | String |
queue
object fields
Parameter | Description | Data type |
---|---|---|
self | Address of the API resource with information about the queue. | String |
id | Queue ID. | String |
key | Queue key. | String |
display | Queue name displayed. | String |
status
object fields
Parameter | Description | Data type |
---|---|---|
self | Address of the API resource with information about the status. | String |
id | Status ID. | String |
key | Status key. | String |
display | Status name displayed. | String |
previousStatus
object fields
Parameter | Description | Data type |
---|---|---|
self | Address of the API resource with information about the status. | String |
id | Status ID. | String |
key | Status key. | String |
display | Status name displayed. | String |
If the request is processed incorrectly, the API returns a response with an error code:
- 401
- The user is not authorized. Make sure that actions described in the API access section are performed.
- 403
- You are not authorized to perform this action. You can check what rights you have in the Tracker interface. The same rights are required to perform an action via the API and interface.
- 404
- The requested object was not found. You may have specified an invalid object ID or key.
- 423
- Object edits disabled. The
version
parameter value limit (the maximum number of object updates) might have been exceeded. The maximum version value is10100
for robots and11100
for users.