---
metadata:
  - name: generator
    content: Diplodoc Platform v5.47.3
alternate:
  - https://yandex.com.tr/support/tracker/en/user/bitbucket.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/support/tracker/en/llms.txt

# 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](*issuekey) 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](https://yandex.com.tr/support/tracker/en/user/add-repository.md).

{% note warning "" %}

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.

{% endnote %}

## Integrating an online repository {#repo}

To integrate your online repository on Bitbucket to Yandex Tracker:

1. Obtain an API token on Bitbucket to access your repository:
    - Log in to [Bitbucket](https://bitbucket.org).
    - 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:bitbucket` option for Yandex Tracker integration.
    - Check that you've entered everything correctly and click **Create token**.
    - Copy the token you just created.

    <!--- Нажмите на фото вашего профиля в левом нижнем углу и выберите **Bitbucket settings**.
    - Выберите **App passwords** в блоке **Access management**.
    - Нажмите **Create app password**.
    - Придумайте название для пароля, например `Tracker integration password`.
    - Настройте разрешения для пароля. Для правильной работы с Трекером необходимо, чтобы опция **read** в блоке **Repositories** была включена:
        ![](../_assets/bitbucket-password-settings.png)
    - Нажмите кнопку **Create**.
    - Скопируйте пароль в буфер обмена.-->

      {% note alert "" %}

      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.

      {% endnote %}

1. <!-- source: en/_includes/make-sure-admin.md -->
   Make sure you are authorized in Tracker as an [administrator](https://yandex.com.tr/support/tracker/en/role-model.md).
   <!-- endsource: en/_includes/make-sure-admin.md -->

1. <!-- source: en/_includes/repository-path.md -->
   In Yandex Tracker, in the left-hand panel, click <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" aria-hidden="true" class="yc-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M14 6.125a1.874 1.874 0 1 1 .001 3.749A1.874 1.874 0 0 1 14 6.125zm-5.906 0a1.874 1.874 0 1 1 0 3.749 1.874 1.874 0 0 1 0-3.749zM2 6.125a1.874 1.874 0 1 1 .001 3.749A1.874 1.874 0 0 1 2 6.125z"/></svg></svg> → <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" aria-hidden="true" class="yc-icon nv-composite-bar__menu-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17"><path d="M15.84 4.69c-.06-.4-.37-.69-.75-.82-.4-.09-.8.04-1.06.29L12.2 6l-1.03-.16L11 4.81 12.84 3c.29-.28.38-.69.29-1.06-.13-.38-.41-.69-.82-.78a4.76 4.76 0 0 0-4.56 1.28A4.72 4.72 0 0 0 6.47 6.9L.72 12.62a2.66 2.66 0 0 0 0 3.63 2.58 2.58 0 0 0 3.62 0l5.72-5.72a4.8 4.8 0 0 0 5.78-5.84Zm-2.34 3.5a3.23 3.23 0 0 1-3.38.81l-.43-.16L3.3 15.2c-.37.4-1.1.4-1.47 0a1.04 1.04 0 0 1-.3-.75c0-.28.12-.53.3-.75l6.38-6.35-.13-.43a3.12 3.12 0 0 1 .72-3.41 3.2 3.2 0 0 1 2.31-1h.04L9.4 4.31l.46 2.82 2.82.5L14.5 5.8c0 .88-.34 1.75-1 2.38ZM2.72 13.75c-.28 0-.47.22-.47.5 0 .25.22.5.47.5.25 0 .47-.25.47-.5.03-.25-.19-.5-.47-.5Z"/></svg></svg> **Administration** and then open <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" aria-hidden="true" class="yc-icon page-admin__menu-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M224 48c97.167 0 176 27.723 176 61.714v4.571C400 148.277 321.167 176 224 176S48 148.277 48 114.286v-4.571C48 75.723 126.833 48 224 48m176 135.018v26.399c0 33.991-78.833 61.714-176 61.714S48 243.408 48 209.417v-26.399C85.813 210.982 155.021 224 224 224s138.187-13.018 176-40.982m0 96v26.834c0 33.991-78.833 61.714-176 61.714S48 339.842 48 305.851v-26.834C85.813 306.982 155.021 320 224 320s138.187-13.018 176-40.982m0 96v27.268C400 436.277 321.167 464 224 464S48 436.277 48 402.286v-27.268C85.813 402.982 155.021 416 224 416s138.187-13.018 176-40.982M224 0C137.052 0 0 23.26 0 109.714v292.571C0 488.758 137.03 512 224 512c86.948 0 224-23.26 224-109.714V109.714C448 23.242 310.97 0 224 0z"/></svg></svg> **Repositories**.
   <!-- endsource: en/_includes/repository-path.md -->

1. Click **Add** and select **Repository**.

1. Choose Bitbucket in the **Platform** field.

1. Choose **bitbucket.org** for the **Server address** option.

1. In the **Repository** field, enter the address in this format: `https://bitbucket.org/<repository_owner_login>/<repository_name>`.

1. In the **Login** field, enter `x-bitbucket-api-token-auth`.

1. In the **Password** field, insert the token you obtained.

1. Click **Add**.

1. Make sure that the repository status in Yandex Tracker is **Connected**.

## Integrating an on-premises repository {#on-premise}

Before continuing, obtain a token to access the repository. For details on how to obtain an OAuth token, see the [Bitbucket documentation](https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/).

<!-- source: en/_includes/on-premise-server.md -->
To integrate an on-premises repository with Yandex Tracker:

1. <!-- source: en/_includes/make-sure-admin.md -->
   Make sure you are authorized in Tracker as an [administrator](https://yandex.com.tr/support/tracker/en/role-model.md).
   <!-- endsource: en/_includes/make-sure-admin.md -->

1. <!-- source: en/_includes/repository-path.md -->
   In Yandex Tracker, in the left-hand panel, click <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" aria-hidden="true" class="yc-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M14 6.125a1.874 1.874 0 1 1 .001 3.749A1.874 1.874 0 0 1 14 6.125zm-5.906 0a1.874 1.874 0 1 1 0 3.749 1.874 1.874 0 0 1 0-3.749zM2 6.125a1.874 1.874 0 1 1 .001 3.749A1.874 1.874 0 0 1 2 6.125z"/></svg></svg> → <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" aria-hidden="true" class="yc-icon nv-composite-bar__menu-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17"><path d="M15.84 4.69c-.06-.4-.37-.69-.75-.82-.4-.09-.8.04-1.06.29L12.2 6l-1.03-.16L11 4.81 12.84 3c.29-.28.38-.69.29-1.06-.13-.38-.41-.69-.82-.78a4.76 4.76 0 0 0-4.56 1.28A4.72 4.72 0 0 0 6.47 6.9L.72 12.62a2.66 2.66 0 0 0 0 3.63 2.58 2.58 0 0 0 3.62 0l5.72-5.72a4.8 4.8 0 0 0 5.78-5.84Zm-2.34 3.5a3.23 3.23 0 0 1-3.38.81l-.43-.16L3.3 15.2c-.37.4-1.1.4-1.47 0a1.04 1.04 0 0 1-.3-.75c0-.28.12-.53.3-.75l6.38-6.35-.13-.43a3.12 3.12 0 0 1 .72-3.41 3.2 3.2 0 0 1 2.31-1h.04L9.4 4.31l.46 2.82 2.82.5L14.5 5.8c0 .88-.34 1.75-1 2.38ZM2.72 13.75c-.28 0-.47.22-.47.5 0 .25.22.5.47.5.25 0 .47-.25.47-.5.03-.25-.19-.5-.47-.5Z"/></svg></svg> **Administration** and then open <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" aria-hidden="true" class="yc-icon page-admin__menu-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M224 48c97.167 0 176 27.723 176 61.714v4.571C400 148.277 321.167 176 224 176S48 148.277 48 114.286v-4.571C48 75.723 126.833 48 224 48m176 135.018v26.399c0 33.991-78.833 61.714-176 61.714S48 243.408 48 209.417v-26.399C85.813 210.982 155.021 224 224 224s138.187-13.018 176-40.982m0 96v26.834c0 33.991-78.833 61.714-176 61.714S48 339.842 48 305.851v-26.834C85.813 306.982 155.021 320 224 320s138.187-13.018 176-40.982m0 96v27.268C400 436.277 321.167 464 224 464S48 436.277 48 402.286v-27.268C85.813 402.982 155.021 416 224 416s138.187-13.018 176-40.982M224 0C137.052 0 0 23.26 0 109.714v292.571C0 488.758 137.03 512 224 512c86.948 0 224-23.26 224-109.714V109.714C448 23.242 310.97 0 224 0z"/></svg></svg> **Repositories**.
   <!-- endsource: en/_includes/repository-path.md -->

1. Click **Add** and select **Repository**.

1. In the **Platform** field, select the type of your repository.

1. Choose **Own** for the **Server address** option.

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

1. In the **Token from platform** field, enter the token for connecting to your server.

1. Click **Add**.

1. Make sure that the repository status in Yandex Tracker is **Connected**.
<!-- endsource: en/_includes/on-premise-server.md -->

<!-- source: en/_assets/style/image.md -->

<!-- endsource: en/_assets/style/image.md -->

[*issuekey]: An issue key is a unique identifier contained in the issue link. It consists of the queue key and a number, for example `TEST-123`.