Accessing the Yandex Tracker API
-
When creating a new workflow or editing an existing one, in the management console, under Create workflow / Edit workflow, select
Constructor
. -
From the Integration steps section on the left side of the screen, drag the
Tracker element to the relevant workflow location in the constructor window.You can drag and drop steps into areas marked by the dotted line in the workflow schema, such as Add a step, etc.
-
In the workflow schema window, click the new Tracker section to select it.
-
At the right of the window, on the Settings tab.
-
In the Step name field, enter a name for the workflow step.
-
Optionally, if the Yandex Tracker API uses a non-standard endpoint, edit the default value in the Endpoint field accordingly.
-
Under OAuth token, specify the app OAUth token
or Yandex Lockbox secret that stores the token. Select:-
Lockbox
to store the OAuth token in a secret; in the Secret section, select the secret, its version, and the key used to store the OAuth token.If you do not have a Yandex Lockbox secret, click Create to create it.
-
Text
to store the OAuth token in the specification as text; enter the OAuth token in the Value field.Warning
It is not safe to store your OAuth token in the specification in plain text.
-
-
In the Organization field, select the type of the organization your Tracker is connected to:
Yandex Cloud Organization
orYandex 360
. Alternatively, set it toNot specified
if you do not want to specify any organization.If you specified the organization type, specify its ID in the Organization ID field.
For more information about organizations, see the Yandex Tracker documentation
. -
In the Action field, select the action to perform with Tracker issues:
Get issue
- In the Issue key field, specify the issue key
, i.e., its unique ID.
Create issue
-
In the Queue field, specify the ID of the queue
to create your issue in. -
In the Name field, enter the issue name.
-
Optionally, in the Parent issue field, specify the parent issue key.
-
Optionally, in the Description field, enter a description for the new issue.
-
Under Add to sprints, specify the sprints
to add your issue to, if required. Select:Do not add
if you do not want to add the issue to any sprint.List
to add sprints one by one using .JSON
to add sprints as a JSON array or jq template.
-
Optionally, in the Type field, specify the issue type
. -
Optionally, in the Priority field, specify the issue priority.
-
Under Add followers, specify the users to add to your new issue as followers. Select:
Do not add
if you do not want to add any followers.List
to add followers by their usernames or IDs one by one using .JSON
to add followers by their usernames or IDs provided as a JSON array or jq template.
-
Optionally, in the Assignee field, specify the username or ID of the user to assign the issue to.
-
Optionally, in the Author field, specify the username or ID of the user creating the issue.
-
Optionally, in the Additional fields field, use
to set additional fields for the new issue, in<field_name>
:<field_value>
format.
Update issue
Note
If you do not set new values for the optional fields, they will remain the same.
-
In the Issue key field, specify the key
of the issue you want to update. -
Optionally, in the Name field, set a new name for the issue.
-
Optionally, in the Parent issue field, specify the new parent issue key.
-
Optionally, in the Description field, set a new description for the issue.
-
Under Change sprints, edit the sprints which include the issue, if required. Select:
-
Do not change
to not edit the sprints which include the issue. -
Replace sprints
to replace all current sprints the issue is included in with new ones. In the Sprint field, select:List
to set new sprints one by one using .JSON
to set new sprints as a JSON array or jq template.
-
Add sprint
to add new sprints to those which already include the issue. In the Sprint field, select:List
to add sprints one by one using .JSON
to add sprints as a JSON array or jq template.
-
Delete sprint
to delete the issue from sprints. In the Sprint field, select:List
to set the sprints you want to remove the issue from one by one using .JSON
to set the sprints you want to remove the issue from as a JSON array or jq template.
-
Update sprint
to replace all current sprints which include the issue with the specified ones. In the Sprint field, select:Dictionary
to specify the update rules for the sprints using , in<Original_value>
:<New_value>
format, where<Original_value>
is the current sprint which includes the issue and<New_value>
is the sprint to replace the current one.JSON
to specify the update rules for your sprints as a JSON object or jq template.
-
-
Optionally, in the Type field, set the new issue type.
-
Optionally, in the Priority field, set a new priority for the issue.
-
Under Change followers, edit the issue followers, if required. Select:
-
Do not change
to not edit the issue followers. -
Replace followers
to replace all current issue followers with new ones. In the Follower field, select:List
to set new followers by their usernames or IDs one by one using .JSON
to set new followers by their usernames or IDs provided as a JSON array or jq template.
-
Add follower
to add new issue followers to the existing ones. In the Follower field, select:List
to add followers by their usernames or IDs one by one using .JSON
to add followers by their usernames or IDs provided as a JSON array or jq template.
-
Delete follower
to remove followers from the issue. In the Follower field, select:List
to set the followers you want to remove from the issue by their usernames or IDs one by one using .JSON
to set the followers you need to remove from the issue by their usernames or IDs as a JSON array or jq template.
-
Update follower
to replace current issue followers with the specified ones. In the Follower field, select:Dictionary
to specify the update rules for the followers using , in<Original_value>
:<New_value>
format, where<Original_value>
is the username or ID of a current follower and<New_value>
is that of the follower to replace the current one.JSON
to specify the update rules for the followers as a JSON object or jq template.
-
-
Optionally, in the Additional fields field, edit the additional fields of your issue. To do this, click
. In the settings section that opens, do the following:-
In the Field name field, enter the name of the field you want to edit.
-
Under Change field, select:
-
Replace value
to replace all current field values with new ones. In the Value field, select:List
to set new field values one by one using .JSON
to set new field values as a JSON array or jq template.
-
Add value
to add new field values to the existing ones. In the Value field, select:List
to add field values one by one using .JSON
to add field values as a JSON array or jq template.
-
Delete value
to delete the field values. In the Value field, select:List
to set the field values you want to delete one by one using .JSON
to set the field values you need to delete as a JSON array or jq template.
-
Update value
to replace current field values with the specified ones. In the Value field, select:Dictionary
to specify the update rules for the field values using , in<Original_value>
:<New_value>
format, where<Original_value>
is the current field value and<New_value>
is the field value to replace the current one.JSON
to specify the update rules for the field values as a JSON object or jq template.
-
-
Link issue
- In the Key of first issue field, specify the key of the first issue you want to create a link for.
- In the Key of the second issue field, specify the key of the second issue which you want to link to the first one.
- In the Link type field, select the type of the link between the issues.
Find issue
-
Under Search parameters, select:
-
Queue
to get issues from the specified queue. In the Queue name field, enter the key of the queue you want to get issues from. -
Issue key list
to get issues with the specified keys. In the Issue keys field, select:List
to set issue keys one by one using .JSON
to set issue keys as a JSON array or jq template.
-
Issue filtering parameters
to get issues with the specified field values.- In the Filtering fields field, use
to specify the fields to filter your issues by and the values of those fields. - Optionally, to sort the returned issues, select
Enabled
in the Sort by field and specify the name of the field to sort your issues by. Enable the Descending option to sort your issues in descending order.
- In the Filtering fields field, use
-
Query language filter
to return issues for the specified Yandex Tracker query language filter .
-
-
In the Page size field, specify the number of issues to show per page
with search results. -
In the Page name field, specify the number of the search results page you want to get.
Update issue status
- In the Issue key field, specify the key
of the issue to edit the status for. - In the Transition field, specify the issue transition ID.
- Optionally, in the Additional fields field, use
to set additional fields for the issue and their values required for the transition.
Add comment
-
In the Issue key field, specify the key
of the issue you want to add a comment to. -
In the Text field, specify the comment text.
-
Optionally, under Invite users, set the users to invite to the issue in the comment you are adding. Select:
Do not invite
to not invite anyone.List
to specify users to invite by their usernames or IDs one by one using .JSON
to specify usernames or IDs of the users you invite as a JSON array or jq template.
Update comment
- In the Comment ID field, specify the ID of the comment you want to update.
- In the Issue key field, specify the key
of the issue where you want to update a comment. - In the Text field, add the new comment text.
Get comment
- In the Issue key field, specify the key
of the issue to get comments from. - Optionally, in the Comment ID field, specify the from comment ID. The response will return comments created later than the one you specify, excluding that comment.
- Optionally, in the Number of comments field, set the maximum number of comments to return in the response.
- In the Issue key field, specify the issue key
-
Optionally, in the Timeout, ms field, set the maximum execution time for the current step.
-
Optionally, to set a custom retry policy for a step, expand the Retry policy section and click
Retry policy. In the form that appears:-
Optionally, in the Initial delay, ms field, set the initial value for a delay between step retries.
-
Optionally, in the Backoff rate field, set the multiplication factor for delay before each step retry.
-
Optionally, in the Maximum delay, ms field, set the value for a maximum delay between step retries.
-
In the Errors field, select the errors for which the step will or will not be retried.
For detailed information about possible errors, see this section.
-
Optionally, in the Maximum number of retries field, set the maximum number of step retry attempts.
-
In the Error selection mode field, select:
INCLUDE
: Retry executing a step when errors specified in the Errors field occur.EXCLUDE
: To retry executing the step on any errors other than those specified in the Errors field.
If you want to delete a retry policy you created for the step earlier, click
and select Delete in the Retry policy row.If no custom retry policy is configured for a step, the retry policy set for the whole workflow will apply.
-
-
-
Optionally, navigate to the Input tab and set a jq template to filter the workflow state fed into the step.
-
Optionally, navigate to the Output tab and set a jq template to filter the step outputs added into the workflow state.
-
Optionally, add an error transition rule for the step you are creating to handle errors you may get during this step.