Getting a list of statuses
Use this request to get a list of issue statuses.
GET
https://api.tracker.yandex.net/v3/statuses
Request format
Before making a request, get permission to access the API.
To get a list of issue statuses, use an HTTP GET
request:
GET /v3/statuses
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.
-
Response format
If the request is successful, the API returns a response with code 200 OK
.
The response body contains a JSON object with a list of issue statuses.
[
{
"self": "https://api.tracker.yandex.net/v3/statuses/1",
"id": 1,
"version": 1,
"key": "open",
"name": "Open",
"description": "Open",
"order": 200,
"type": "new"
}
]
Response parameters
Parameter | Description | Data type |
---|---|---|
self | Address of the API resource with information about the issue type. | String |
id | Unique ID of the issue status in Yandex Tracker. | Number |
version | Version of the issue status. | Number |
key | Key of the issue status. | String |
name | Display name of the issue status. | String |
description | Description of the issue status. | String |
order | Status weight. This parameter affects the order of status display in the interface. | Number |
type | Status type. Acceptable values include:
|
String |
- 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.