Bitbucket
You can integrate your Bitbucket repository with Yandex Tracker to display links to commits in issues.
To add a commit link to an issue, specify the issue key in the commit comment, for example, Fixing error TEST-123. The link will appear in the issue's Commits tab. For more information, see Integration with repositories.
Bitbucket supports Yandex Tracker integration only through periodic repository polling.
Links to commits may appear in Yandex Tracker with a delay of up to 10 hours.
Integrating an online repository
To integrate your online repository on Bitbucket to Yandex Tracker:
-
Obtain an API token on Bitbucket to access your repository:
- Log in to Bitbucket.
- In the upper-right corner of the page, click the gear icon and select Atlassian account settings.
- Open the Security tab, go to API tokens, and click Create and manage API tokens.
- Click Create API token with scopes.
- Specify the token name and expiry date.
- Select Bitbucket as the app.
- Configure permissions for the token. Enable the
read:repository:bitbucketoption for Yandex Tracker integration. - Check that you've entered everything correctly and click Create token.
- Copy the token you just created.
The token value is displayed only once — remember to save it. If you close the page, you will not be able to view it again.
-
Make sure you are authorized in Tracker as an administrator.
-
In Yandex Tracker, in the left-hand panel, click → Administration and then open Repositories.
-
Click Add and select Repository.
-
Choose Bitbucket in the Platform field.
-
Choose bitbucket.org for the Server address option.
-
In the Repository field, enter the address in this format:
https://bitbucket.org/<repository_owner_login>/<repository_name>. -
In the Login field, enter
x-bitbucket-api-token-auth. -
In the Password field, insert the token you obtained.
-
Click Add.
-
Make sure that the repository status in Yandex Tracker is Connected.
Integrating an on-premises repository
Before continuing, obtain a token to access the repository. For details on how to obtain an OAuth token, see the Bitbucket documentation.
To integrate an on-premises repository with Yandex Tracker:
-
Make sure you are authorized in Tracker as an administrator.
-
In Yandex Tracker, in the left-hand panel, click → Administration and then open Repositories.
-
Click Add and select Repository.
-
In the Platform field, select the type of your repository.
-
Choose Own for the Server address option.
-
In the Repository field, specify the URL of the repository on your server. Make sure that you connect to the server using the OAuth 2.0 technology.
-
In the Token from platform field, enter the token for connecting to your server.
-
Click Add.
-
Make sure that the repository status in Yandex Tracker is Connected.
The task key is a unique identifier for the task. It consists of a queue key and a sequence number, for example: TEST-123. Using the key, you can navigate to the task using the link: https://tracker.yandex.com//TEST-123.