Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Blog
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
Yandex project
© 2023 Yandex.Cloud LLC
Yandex Tracker
  • Getting started
    • Activating Yandex Tracker
    • Logging in to Yandex Tracker
    • Adding users
    • Configuring access to Yandex Tracker
    • Setting up Yandex Tracker
    • Working with Yandex Tracker
      • Start page
      • My issues
      • Working with issues
      • Favorite issues, boards, and dashboards
      • Personal settings
    • Migrating to Yandex Tracker
    • Disabling paid services
  • Yandex Tracker mobile app
  • Tutorials
    • Setting up Yandex Tracker for a development team
      • Overview
      • Creating a queue for a development team
      • Structuring issues
      • Using Agile methodologies
      • Configuring issue templates
      • Connecting repositories
      • Automating recurring actions
      • Integrating Yandex Tracker with other platforms
    • Setting up Yandex Tracker for a support team
      • Overview
      • Creating a queue for the support team
      • Accepting requests by mail and via forms
      • Configuring multi-tiered support
      • Sending emails from the issue page
      • Grouping requests by topic
      • Tracking the time it takes to process a request
      • Collecting request statistics
      • Configuring integration with third-party platforms
  • Concepts
    • Service overview
    • Concepts
    • Roles and access rights
  • Configuring queues
    • Overview
    • Create a queue
    • Queue templates
    • Viewing issues in a queue
    • Changing basic queue settings
    • Changing basic queue settings
      • Overview
      • Configuring issue types
      • Creating a workflow
      • Setting up statuses
      • Configuring transitions
      • Setting up resolutions
    • Local issue fields
    • Adding a queue team
    • Setting access rights for queues
    • Advanced queue features
    • Viewing the history of queue changes
    • Delete a queue
  • Working with issues
    • Create an issue
      • Overview
      • Creating an issue via email
      • Creating an issue from a form
      • Cloning an issue
    • Edit an issue
      • Overview
      • Adding comments to issues
      • Creating a checklist
      • Editing issue links
      • Attaching images and files to an issue
      • Formatting text in issues
      • Voting for an issue
      • Move an issue to another queue
      • Changing multiple issues
    • Setting up an issue reminder
    • Registering time spent
    • Adding issue fields
    • Viewing the history of issue changes
    • Getting access to an issue
    • Deleting an issue
  • Structuring issues
    • Overview
    • Links between issues
    • Projects
      • Overview
      • Create a project
      • List of project issues
      • Gantt chart
    • Components
    • Versions
  • Agile development tools
    • Overview
    • Create a board
    • Working with an agile board
    • Editing or deleting a board
    • Backlog
    • Sprints
    • Epics
    • Collaborative workload estimation
    • Burn down charts
  • Issue boards (beta)
    • Overview
    • Create a board
    • Working with an agile board
    • Setting up a board
  • Find issues
    • Finding issues by key or name
    • Finding my issues
    • Finding issues in queues
    • Creating an issue filter
    • Query language
  • Notifications and subscriptions
    • Overview
    • Subscribing to notifications
    • Receiving update reports
    • Subscribing other users to queue updates
    • Email notification settings
      • Overview
      • Notifications about your issues
      • Notifications about your subscriptions
    • Sending notifications to mailboxes in your domain
  • Statistics and dashboards
    • Dashboards
      • Overview
      • Creating a dashboard
      • Widgets
      • Editing a dashboard
      • Shared access to dashboards
      • Making a dashboard your start page
    • Queue statistics
    • Gantt chart
  • Automation and templates
    • Overview
    • Triggers
      • Overview
      • Creating triggers
      • Setting trigger conditions
      • Configuring trigger actions
      • Editing and deleting triggers
      • Examples
    • Auto actions
      • Overview
      • Automatic issue updates
      • Scheduled issue creation
      • Editing or deleting auto actions
    • Macros
    • Templates
      • Overview
      • Creating a template in Yandex Forms (beta)
      • Creating a template
      • Editing a template
      • Deleting a template
      • Using shared templates
    • Variables
    • Using a form as a template for creating issues
  • Configuring an SLA for issues
    • Overview
    • Configuring rules
    • Work schedule
  • Integration with other services
    • Email
    • Yandex Forms
    • Yandex Wiki
    • Messengers
      • Overview
      • Slack
      • Telegram
    • Setting up links to external applications
      • Overview
      • Setting up an external application
      • Sending your application data to the Tracker team
  • Developer tools
    • API
    • Python client
    • Connecting repositories
  • Pricing policy
    • Billing
    • Setting up a billing account
    • Paying for services
    • Viewing service usage details
  • API reference
    • Overview
    • API access
    • General query format
    • Issues
      • Get issue parameters
      • Edit an issue
      • Create an issue
      • Moving an issue to another queue
      • Find out the number of issues
      • Search for issues
      • Release scroll view resources
      • Get priorities
      • Get transitions
      • Make a status transition
      • Get the history of issue changes
      • Issue links
        • Link issues
        • Get issue links
        • Remove issue links
    • Checklists
      • Create a checklist or add items to it
      • Get checklist parameters
      • Edit a checklist
      • Delete a checklist
    • Projects
      • Create a project
      • Get project parameters
      • Get a list of all projects
      • Get a list of project queues
      • Edit a project
      • Delete a project
    • Comments
      • Add comment
      • Get issue comments
      • Edit a comment
      • Delete a comment
    • Macros
      • Get queue macros
      • Get a macro
      • Create a macro
      • Edit a macro
      • Delete a macro
    • External links
      • Get a list of external applications
      • Get a list of issue external links
      • Add an external link
      • Delete an external link
    • Attached files
      • Get a list of attached files
      • Download a file
      • Download a thumbnail
      • Attach a file
      • Upload a temporary file
      • Delete a file
    • Queues
      • Create a queue
      • Get queue parameters
      • Get a list of queues
      • Get queue versions
      • Get required fields for the queue
      • Delete a queue
      • Restore a queue
      • Remove a tag from a queue
      • Automation
        • Auto actions
          • Create an auto action
          • Get auto action parameters
        • Triggers
          • Creating a trigger
          • Get trigger parameters
    • Issue boards
      • Get parameters of all boards
      • Get board parameters
      • Create a board
      • Edit a board
      • Delete a board
      • Columns
        • Get parameters of all columns
        • Get column parameters
        • Create a column
        • Edit a column
        • Delete a column
      • Sprints
        • Get all sprints of a board
        • Get a sprint
        • Create a sprint
    • Components
      • Get a list of components
    • Import
      • Import an issue
      • Import files
      • Import comments
      • Import links
    • Bulk operations
      • Perform a bulk move of issues to a different queue
      • Bulk changes to issues
      • Make bulk changes to issue statuses
    • Time tracking
      • Add a record of time spent
      • Edit a record of time spent
      • Delete a record of time spent
      • Get records of time spent
        • Get all records for an issue
        • Select records by parameters
    • Issue fields
      • Get global issue fields
      • Create an issue field
      • Get issue field parameters
      • Edit issue field names
      • Edit possible values of issue fields
      • Create an issue field category
      • Local fields
        • Create a local queue field
        • Get local queue fields
        • Get information about a local queue field
        • Edit a local queue field
    • Get information about the current user
    • Possible response codes
  • Questions and answers
    • General questions
    • Billing
  • Revision history
    • November 2022
    • October 2022
    • September 2022
    • August 2022
  • Support
  1. API reference
  2. Import
  3. Import an issue

Import an issue

Written by
Yandex Cloud
  • Request format
  • Response format

Warning

This request can only be made on behalf of the organization's administrator.

Use it to import to Tracker tasks from other project management systems.

Request format

To import an issue, use an HTTP POST request. Issue parameters are passed in the request body in JSON format:

POST /v2/issues/_import 
Host: https://api.tracker.yandex.net
Authorization: OAuth <token>
X-Org-ID: <organization ID>

{
  "queue": "TEST",
  "summary": "Test",
  "createdAt": "2017-08-29T12:34:41.740+0000",
  "createdBy": 1110000000011111
}

If necessary, you can extend the list of fields available for import. To do this, create additional fields in Tracker and specify them in the request in the following format:

"field_name": "field value"
Headers
  • Host

    API host address:

    https://api.tracker.yandex.net
    
  • Authorization

    OAuth token in OAuth <token value> format. For example:

    OAuth 0c4181a7c2cf4521964a72ff57a34a07
    
  • X-Org-ID

    Organization ID.

Request body parameters

Required parameters

Parameter Description Data type
queue Queue key. String
summary Issue name, no more than 255 characters. String
createdAt Issue creation date and time in YYYY-MM-DDThh:mm:ss.sss±hhmm format. Must be no later than the current time. String
createdBy Username or ID of the user who created the issue.
  • String for the username
  • Number for the ID

Additional parameters

Parameter Description Data type
key Issue key. The key must belong to the queue that the issue is imported to.

If this parameter is omitted, the issue is assigned a key automatically.
String
updatedAt Date and time of the issue's last update in YYYY-MM-DDThh:mm:ss.sss±hhmm format. You can specify any value in the interval from issue creation to the current time.

The parameter is only used together with the updatedBy parameter.
String
updatedBy Username or ID of the user who edited the issue last.

The parameter is only used together with the updatedAt parameter.
  • String for the username
  • Number for the ID
resolvedAt Date and time when the resolution is added, in YYYY-MM-DDThh:mm:ss.sss±hhmm format. You can specify any value in the interval from issue creation to the time it was last updated.
The parameter is only used together with the resolution and resolvedBy parameters.
String
resolvedBy Username or ID of the user who set the resolution.

The parameter is only used together with the resolution and resolvedAt parameters.
  • String for the username
  • Number for the ID
status Issue status ID. The status must be present in the queue workflow for the selected issue type.

If not specified, the initial status of the workflow is used.
Number
deadline Deadline in YYYY-MM-DD format. String
resolution Issue resolution ID.

The parameter is only used together with the resolvedBy and resolvedAt parameters.
Number
type ID of the issue type. The issue type must be present in the queue.

If not specified, the issue type that is selected as the default for the queue is used.
Number
description Issue description, no more than 512,000 characters. String
start Start date in YYYY-MM-DD format. String
end End date in YYYY-MM-DD format. String
assignee Username or ID of the assignee.
  • String for the username
  • Number for the ID
priority Priority ID.

If no priority is specified, the priority that is selected as the default for the queue is used.
Number
affectedVersions Version IDs listed in the Affected Version field. The versions must exist in the queue. JSON array
fixVersions Version IDs listed in the Fix Version field. The versions must exist in the queue. JSON array
components IDs of the components that apply to the issue. The components must exist in the queue. JSON array
tags Array of issue tags. JSON array
sprint IDs of the sprints that the issue is part of. JSON array
followers Array of IDs or usernames of issue followers. JSON array
access Array of IDs or usernames of users listed in the Access field. JSON array
unique Unique issue ID. You can set any ID. String
followingMaillists IDs of mailing lists (teams and departments subscribed to the issue). JSON array
originalEstimation Value of the "Original Estimate" parameter in milliseconds. Number
estimation Value of the "Estimate" parameter in milliseconds. Number
spent Value of the "Time Spent" parameter in milliseconds. Number
storyPoints Value of the Story Points parameter. Floating-point number
votedBy Array of IDs or usernames of users who voted for the issue. JSON array
favoritedBy Array of IDs or usernames of users who added the issue to favorites. JSON array

Example: Import an issue.

  • An HTTP POST method is used.
  • All additional fields are displayed in the response.
POST /v2/issues/_import 
Host: https://api.tracker.yandex.net
Authorization: OAuth <token>
X-Org-ID: <organization ID>

{
"queue": "TEST",
"summary": "Test",
"key": "TEST-1",
"createdAt": "2017-08-29T12:34:41.740+0000",
"createdBy": 1110000000011111,
"updatedAt": "2017-09-09T11:24:31.140+0000",
"updatedBy": 1110000000011111,
"resolvedAt": "2017-09-08T09:33:42.250+0000",
"resolvedBy": 1110000000011111,
"status": 17,
"deadline": "2017-09-07",
"resolution": 1,
"type": 2,
"description": "Test",
"start": "2017-09-04",
"end": "2017-09-07",
"assignee": 1110000000011111,
"priority": 3,
"affectedVersions": [1, 2, 3],
"fixVersions": [4, 5, 6],
"components": [7, 8, 9],
"tags": ["test", "tag"],
"sprint": [1, 2, 3],
"followers": [1110000000011111, 2220000000022222],
"access": [1110000000011111, 2220000000022222],
"unique": "issue_5182786599824772824459",
"followingMaillists": ["test@test.yaconnect.com", "mail@test.yaconnect.com"],
"originalEstimation": 3600000,
"estimation": 3600000,
"spent": 3600000,
"storyPoints": 1.0,
"votedBy": [1110000000011111, 2220000000022222],
"favoritedBy": [1110000000011111, 2220000000022222]
}

Response format

Request executed successfully

If the request is successful, the API returns a response with code 200 OK.

The response body contains the parameters of the attached file in JSON format:

{
  "self": "https://api.tracker.yandex.net/v2/issues/TEST-1",
  "id": "141b2ef1e4b036e9f8397458",
  "key": "TEST-1",
  "version": 1,
  "summary": "Test",
  "originalEstimation": "P1H",
  "estimation": "P1H",
  "spent": "P1H",
  "updatedBy": {
    "self": "https://api.tracker.yandex.net/v2/users/1110000000011111",
    "id": "1110000000011111",
    "display": "Ivan Ivanov"
  },
  "resolvedAt": "2017-09-08T09:33:42.250+0000",
  "start": "2017-09-04",
  "resolvedBy": {
    "self": "https://api.tracker.yandex.net/v2/users/1110000000011111",
    "id": "1110000000011111",
    "display": "Ivan Ivanov"
  },
  "description": "Test",
  "followingMaillists": [
    {
      "self": "https://api.tracker.yandex.net/v2/maillists/test@test.yaconnect.com",
      "id": "test@test.yaconnect.com",
      "display": "test"
    },
    {
      "self": "https://api.tracker.yandex.net/v2/maillists/mail@test.yaconnect.com",
      "id": "mail@test.yaconnect.com",
      "display": "mail"
    }
  ],
  "fixVersions": [
    {
      "self":"https://api.tracker.yandex.net/v2/versions/4",
      "id":"4",
      "display":"Version 4"
    },
    {
      "self":"https://api.tracker.yandex.net/v2/versions/5",
      "id":"5",
      "display":"Version 5"
    },
    {
      "self":"https://api.tracker.yandex.net/v2/versions/6",
      "id":"6",
      "display":"Version 6"
    }
  ],
  "type": {
    "self": "https://api.tracker.yandex.net/v2/issuetypes/2",
    "id": "2",
    "key": "task",
    "display": "Task"
  },
  "priority": {
    "self":"https://api.tracker.yandex.net/v2/priorities/3",
    "id":"3",
    "key":"normal",
    "display":"Normal"
  },
  "resolution": {
    "self":"https://api.tracker.yandex.net/v2/resolutions/1",
    "id":"1",
    "key":"fixed",
    "display":"Fixed"
  },
  "createdAt": "2017-08-29T12:34:41.740+0000",
  "followers": [
    {
      "self": "https://api.tracker.yandex.net/v2/users/1110000000011111",
      "id": "1110000000011111",
      "display": "Ivan Ivanov"
    },
    {
      "self": "https://api.tracker.yandex.net/v2/users/2220000000022222",
      "id": "2220000000022222",
      "display": "Petr Petrov"
    }
  ],
  "assignee": {
    "self": "https://api.tracker.yandex.net/v2/users/1110000000011111",
    "id": "1110000000011111",
    "display": "Ivan Ivanov"
  },
  "createdBy": {
    "self": "https://api.tracker.yandex.net/v2/users/1110000000011111",
    "id": "1110000000011111",
    "display": "Ivan Ivanov"
  },
  "commentWithoutExternalMessageCount": 0,
  "votes": 0,
  "affectedVersions": [
    {
      "self":"https://api.tracker.yandex.net/v2/versions/1",
      "id":"1",
      "display":"Version 1"
    },
    {
      "self":"https://api.tracker.yandex.net/v2/versions/2",
      "id":"2",
      "display":"Version 2"
    },
    {
      "self":"https://api.tracker.yandex.net/v2/versions/3",
      "id":"3",
      "display":"Version 3"
    }
  ],
  "commentWithExternalMessageCount": 0,
  "end": "2017-09-07",
  "deadline": "2018-05-28",
  "queue": {
    "self": "https://api.tracker.yandex.net/v2/queues/TEST",
    "id": "1",
    "key": "TEST",
    "display": "Test"
  },
  "updatedAt": "2017-09-09T11:24:31.140+0000",
  "storyPoints": 1.0,
  "status": {
    "self": "https://api.tracker.yandex.net/v2/statuses/17",
    "id": "17",
    "key": "closed",
    "display": "Closed"
  },
  "components":[
    {
      "self":"https://api.tracker.yandex.net/v2/components/7",
      "id":"7",
      "display":"Component 7"
    },
    {
      "self":"https://api.tracker.yandex.net/v2/components/8",
      "id":"8",
      "display":"Component 8"
    },
    {
      "self":"https://api.tracker.yandex.net/v2/components/9",
      "id":"9",
      "display":"Component 9"
    }
  ],
  "access": [
    {
      "self": "https://api.tracker.yandex.net/v2/users/1110000000011111",
      "id": "1110000000011111",
      "display": "Ivan Ivanov"
    },
    {
      "self": "https://api.tracker.yandex.net/v2/users/2220000000022222",
      "id": "2220000000022222",
      "display": "Petr Petrov"
    }
  ],
  "unique": "issue_5182786599824772824459",
  "favorite": false
}
Response parameters
Parameter Description Data type
self Address of the API resource with information about the issue. String
id Address of the API resource with information about the issue. String
key Issue key. String
version Issue version. Each change to the issue parameters increases its version number. Number
summary Issue name. String
originalEstimation Value of the "Original Estimate" parameter. String
estimation Value of the "Estimate" parameter. String
spent Value of the "Time Spent" parameter. String
updatedBy Object with information about the user who edited the issue last. Object
resolvedAt Date and time of the resolution. String
start Date when progress started on the issue. String
resolvedBy Object with information about the user who added the resolution. Object
description Issue description. String
followingMaillists Array of objects with information about mailing lists (teams and departments subscribed to the issue). Array of objects
fixVersions Versions listed in the "Fix Version" field. JSON array
type Issue type. JSON array
priority Object with information about the priority. Object
resolution Object with information about the resolution. Object
createdAt Issue creation date and time. String
followers Array of objects with information about issue followers. Array of objects
assignee Array of objects with information about the assignee. Array of objects
createdBy Array of objects with information about the issue author. Array of objects
affectedVersions Versions listed in the "Affected Versions" field. JSON array
queue Object with information about the queue that the issue belongs to. Object
status Object with information about the issue status. Object
components Array of objects with information about the components of the issue. Array of objects
access Array of objects with information about the users listed in the "Access" field. Array of objects
commentWithoutExternalMessageCount Number of comments on the issue. Number
votes Number of votes for the issue. Number
commentWithExternalMessageCount Number of messages sent from the issue page. Number
end Date when work on the issue was completed. String
deadline Deadline String
updatedAt Date and time when the issue was last updated. String
storyPoints Value of the Story Points parameter. Floating-point number
unique Unique ID of the issue that was set when importing it. String
favorite Shows if the user added the issue to favorites
  • true: Yes.
  • false: No.
Boolean

Object fields updatedBy

Parameter Description Data type
self Address of the API resource with information about the user. String
id User ID. String
display User's name displayed. String

Object fields resolvedBy

Parameter Description Data type
self Address of the API resource with information about the user. String
id User ID. String
display User's name displayed. String

Object fields followingMaillists

Parameter Description Data type
self Address of the API resource with information about the mailing list. String
id Mailing list ID. String
display Mailing list name displayed. String

Object fields fixVersions

Parameter Description Data type
self Address of the API resource with information about the version. String

Object fields type

Parameter Description Data type
self Address of the API resource with information about the issue type. String
id ID of the issue type. String
key Key of the issue type. String
display Issue type name displayed. String

Object fields priority

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

Object fields resolution

Parameter Description Data type
self Address of the API resource with information about the resolution. String
id Resolution ID. String
key Resolution key. String
display Resolution name displayed. String

Object fields followers

Parameter Description Data type
self Address of the API resource with information about the user. String
id User ID. String
display User's name displayed. String

Object fields assignee

Parameter Description Data type
self Address of the API resource with information about the user. String
id User ID. String
display User's name displayed. String

Object fields createdBy

Parameter Description Data type
self Address of the API resource with information about the user. String
id User ID. String
display User's name displayed. String

Object fields affectedVersions

Parameter Description Data type
self Address of the API resource with information about the version. String
id Version ID. String
display Version name. String

Object fields queue

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. String

Object fields status

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

Object fields components

Parameter Description Data type
self Address of the API resource with information about the component. String
id Component ID. String
key Component key. String
display Component name displayed. String

Object fields access

Parameter Description Data type
self Address of the API resource with information about the version. String
id Version ID. String
display Version name. String
  • Request failed

    If a request fails, the response message contains details of the errors encountered:

    400
    One or more request parameters have an invalid value.
    403
    Insufficient rights 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.
    409
    There was a conflict when editing the object. The error may be due to an invalid update version.
    422
    JSON validation error, the request is rejected.
    500
    Internal service error. Try resending your request in a few minutes.
    503
    The API service is temporarily unavailable.

Was the article helpful?

Language / Region
Yandex project
© 2023 Yandex.Cloud LLC
In this article:
  • Request format
  • Response format