Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
© 2022 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
      • Home page
      • My issues
      • Working with issues
      • Favorite issues, boards, and dashboards
      • Personal settings
    • Migrating to Yandex Tracker
    • Disabling paid services
  • Yandex Tracker mobile app
  • Practical guides
    • 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 requests statistics
      • Configuring integration with third-party platforms
  • Concepts
    • Service overview
    • Concepts
    • Roles and access rights
  • Configuring queues
    • Overview
    • Creating a queue
    • Queue templates
    • Viewing issues in a queue
    • Changing basic queue settings
    • Configuring issue types and statuses
      • Overview
      • Configuring issue types
      • Create a workflow
      • Setting up statuses
      • Configuring transitions
      • Configuring resolutions
    • Local issue fields
    • Adding a queue team
    • Setting access rights for queues
    • Advanced queue features
    • Viewing the history of queue changes
    • Deleting a queue
  • Working with issues
    • Creating an issue
      • Overview
      • Creating an issue via email
      • Creating an issue from a form
      • Cloning an issue
    • Editing an issue
      • Overview
      • Adding comments to issues
      • Creating a checklist
      • Editing issue links
      • Attaching images and files to an issue
      • Formatting text in issues
      • Executing macros
      • Voting for an issue
      • Moving an issue to another queue
      • Changing multiple issues
    • Setting up an issue reminder
    • Specifying 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
    • Components
    • Versions
  • Projects (beta)
    • Overview
    • Create a project
    • List of project issues
    • Gantt charts
  • Agile development tools
    • Overview
    • Creating a board
    • Working with an agile board
    • Editing and deleting a board
    • Sprints
    • Epics
    • Collaborative workload estimation
    • Burn down chart
  • Issue boards (beta)
    • Overview
    • Creating a board
    • Working with an agile board
    • Configuring boards
  • Searching for issues
    • Searching for issues by key or name
    • Searching for my issues
    • Searching for 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
    • Notification settings
      • Overview
      • Notifications about your issues
      • Notifications about your subscriptions
  • Statistics and dashboards
    • Dashboards
      • Overview
      • Creating a dashboard
      • Widgets
      • Editing a dashboard
      • Shared access to dashboards
      • Making a dashboard your home page
    • Queue statistics
    • Gantt charts
  • Automation and templates
    • Overview
    • Triggers
      • Overview
      • Creating a trigger
      • 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 schedules
  • Integration with other services
    • Mail
    • 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
    • Plugin for IDE
    • API
    • Python client
    • Connecting repositories
  • Pricing
    • Pricing
    • Setting up a billing account
    • Topping up your personal account
    • Viewing service detalization
  • 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
  • FAQ
    • General questions
    • Payments
  • Support
  1. API reference
  2. Issues
  3. Create an issue

Create an issue

Written by
Yandex Cloud
  • Request format
  • Response format

Use this request to create issues.

Request format

Before making the request, get permission to access the API.

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

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

{
    "summary": "issue name",
    "queue": {
        "id": "111",
        "key": "test"
        }
}
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

The request body contains the information required to create a new issue:

Required parameters

Parameter Description Data type
summary Issue name. String
queue Queue to create the issue in. Can be set as an object, a string (if the queue key is passed), or a number (if the queue ID is passed).

Additional parameters

Parameter Description Data type
parent Parent issue. Object or string.
description Issue description. String
sprint Block with information about sprints. Array of objects or strings.
type Issue type. Can be set as an object, a string (if the issue type key is passed), or a number (if the issue type ID is passed).
priority Issue priority. Can be set as an object, a string (if the priority key is passed), or a number (if the priority ID is passed).
followers IDs or usernames of issue followers. Array of objects or strings.
assignee ID or username of the issue assignee. Array of objects or strings.
unique Field with a unique value that disables creation of duplicate issues. If you try to create an issue with the same value of this parameter again, no duplicate will be created and the response will contain an error with code 409. String
attachmentIds List of attachment IDs. Array of strings

Object fields queue

Parameter Description Data type
id Queue ID. String
key Queue key. String

Object fields parent

Parameter Description Data type
id ID of the parent issue. String
key Key of the parent issue. String

Object fields type

Parameter Description Data type
id ID of the issue type. String
key Key of the issue type. String

Object fields priority

Parameter Description Data type
id Priority ID. String
key Priority key. String

Object fields followers

Parameter Description Data type
id Employee ID. String

Object fields assignee

Parameter Description Data type
id Employee ID. String

Example: Create an issue

  • An HTTP POST method is used.
  • We're creating an issue named Test Issue in the queue with the key TREK.
  • The new issue is a sub-issue of JUNE-2.
  • Type of the new issue: Bug.
  • Assignee: <user_login>
POST /v2/issues/ HTTP/1.1
Host: https://api.tracker.yandex.net
Authorization: OAuth <OAuth token>
X-Org-ID: <organization ID>

{
   "queue": "TREK",
   "summary": "Test Issue",
   "parent":"JUNE-2",
   "type": "bug",
   "assignee": "<user_login>",
   "attachmentIds": [55, 56]
}

Response format

Request executed successfully
Request failed

If the request is successful, the API returns a response with code 201 Created.

The request body contains information about the created issue in JSON format.

[
    {
    "self": "https://api.tracker.yandex.net/v2/issues/TREK-9844",
    "id": "593cd211ef7e8a332414f2a7",
    "key": "TREK-9844",
    "version": 7,
    "lastCommentUpdatedAt": "2017-07-18T13:33:44.291+0000",
    "summary": "subtask",
    "parent": {
        "self": "https://api.tracker.yandex.net/v2/issues/JUNE-2",
        "id": "593cd0acef7e8a332414f28e",
        "key": "JUNE-2",
        "display": "Task"
        },
    "aliases": [
            "JUNE-3"
        ],

    "updatedBy": {
        "self": "https://api.tracker.yandex.net/v2/users/1120000000016876",
        "id": "<employee ID>",
        "display": "<employee name displayed>"
        },
    "description": "<#<html><head></head><body><div>test</div><div>&nbsp;</div><div>&nbsp;</div> </body></html>#>",
    "sprint": [
            {
        "self": "https://api.tracker.yandex.net/v2/sprints/5317",
        "id": "5317",
        "display": "sprint1"
            }
        ],
    "type": {
        "self": "https://api.tracker.yandex.net/v2/issuetypes/2",
        "id": "2",
        "key": "task",
        "display": "Issue"
        },
    "priority": {
        "self": "https://api.tracker.yandex.net/v2/priorities/2",
        "id": "2",
        "key": "normal",
        "display": "Medium"
        },

    "createdAt": "2017-06-11T05:16:01.339+0000",
    "followers": [
        {
        "self": "https://api.tracker.yandex.net/v2/users/1120000000016876",
        "id": "<employee ID>",
        "display": "<employee name displayed>"
        }
        ],
    "createdBy": {
        "self": "https://api.tracker.yandex.net/v2/users/1120000000049224",
        "id": "<employee ID>",
        "display": "<employee name displayed>"
        },
    "votes": 0,
    "assignee": {
        "self": "https://api.tracker.yandex.net/v2/users/1120000000049224",
        "id": "<employee ID>",
        "display": "<employee name displayed>"
        },
    "queue": {
        "self": "https://api.tracker.yandex.net/v2/queues/TREK",
        "id": "111",
        "key": "TREK",
        "display": "Startrack"
        },
    "updatedAt": "2017-07-18T13:33:44.291+0000",
    "status": {
        "self": "https://api.tracker.yandex.net/v2/statuses/1",
        "id": "1",
        "key": "open",
        "display": "Open"
        },
    "previousStatus": {
        "self": "https://api.tracker.yandex.net/v2/statuses/2",
        "id": "2",
        "key": "resolved",
        "display": "Resolved"
        },
    "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. Number
lastCommentUpdatedAt Date and time when the last comment was added. String
summary Issue name. String
parent Object with information about the parent issue. Object
aliases Array with information about alternative issue keys. Array of strings
updatedBy Object with information about the employee who edited the issue last. Object
description Issue description. String
sprint Array of objects with information about the sprint. Array of objects
type Object with information about the issue type. Object
priority Object with information about the priority. Object
createdAt Issue creation date and time. String
followers Array of objects with information about issue followers. Array of objects
createdBy Object with information about the user who created the issue. Object
votes Number of votes for the issue. Number
assignee Object with information about the issue's assignee. Object
queue Object with information about the issue queue. Object
updatedAt Date and time when the issue was last updated. String
status Object with information about the issue status. Object
previousStatus Object with information about the previous status of the issue. Object
favorite Flag indicating a favorite issue:
  • true: The user added the issue to favorites.
  • false: The issue is not added to favorites.
Boolean

Object fields parent

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

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

Array object fields sprint

Parameter Description Data type
self Address of the API resource with information about the sprint. String
id Sprint ID. String
display Sprint name displayed. 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

Array 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 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 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 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 displayed. 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 previousStatus

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

Was the article helpful?

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