Documentation

No results
    gitHub

    Bitbucket Cloud

    The information below applies to repositories hosted on Bitbucket Cloud. It explains how to grant Hackolade Studio access to your Bitbucket account, which is a pre-requisite for using the features "submit for review" and "review change requests".

     

     

    IMPORTANT: as of September 9, 2025, app passwords can no longer be created. Use API tokens with scopes instead.  All existing app passwords will be disabled on June 9, 2026.  Migrate any integrations before then to avoid disruptions.  While starting with v8.4.2, the Hackolade Studio dialog is updated to reflect the Bitbucket change to API tokens with scopes, it is possible to use older application versions to connect to Bitbucket Cloud.

     

     

    API Tokens with scopes, using v8.4.2 and above

    TBA

     

    API Tokens with scopes, using a version of Hackolade Studio prior to v8.4.2

    API tokens are designed to be used for a single purpose with limited permissions, so they don't require two-factor authentication (2FA).  API tokens are tied to an individual account's credentials and should not be shared. By sharing your API token you're giving direct, authenticated access to everything that the token has permissions to do with the Bitbucket APIs.  This is further described in this link.

     

    To create a connection to Bitbucket Cloud, go to Repository > Repository Connections, then:

     

    • In the Provider dropdown, select Bitbucket (not Bitbucket Data Center).
    • The Host domain name should be bitbucket.org (not editable).
    • The Connect with dropdown should be App password (not editable).
    • The Username should be filled in with the email address that you use to connect to Bitbucket Cloud (i.e. not your username anymore). The hint that pops up can be ignored.

    Bitbucket Cloud API Tokens with scopes
     

    • The App password should be filled in with an API token with scopes.

      • Follow this link to create an API token with scopes: https://id.atlassian.com/manage-profile/security/api-tokens

      • WARNING: it will NOT work if you provide a simple API token (with no scopes), so make sure to click the button Create API token with scopes.

      • The following scopes must all be selected:

        • read:user:bitbucket
        • read:repository:bitbucket
        • write:repository:bitbucket
        • read:pullrequest:bitbucket
        • write:pullrequest:bitbucket

     

     

    App passwords

    In the repository connection manager, you first need to provide your Bitbucket username (it is displayed on your Bitbucket profile). Note that using your email address as username does NOT work.

     

    Workgroup - manage hub connections - Bitbucket Cloud

     

    You must provide an app password, which is a complex password generated by Bitbucket Cloud.  Click on the "generate" link located to the right of the input field to navigate to the app password creation form. Give a meaningful name to your new app password - e.g. "Hackolade Studio" - and select the permissions "Account:Read" and "Pull requests:Write".

     

    Workgroup - Bitbucket Cloud personal token

     

    Click on the "Create" button and copy-paste the generated password in Hackolade Studio. As a last step, click on "Connect" in Hackolade Studio and you are all set!

    You can find more information about app passwords in the Bitbucket Cloud documentation.

     

    Remarks: To be able to retrieve the list of eligible reviewers for a pull request, you must belong to a user group. If you cannot get access to that list in Hackolade, contact your Bitbucket administrator and ask to be added to a user group.

     

    You may get the error message below if you didn't set a valid app password.  It can also indicate that your app password has been revoked, or that it does not grant enough permissions to Hackolade Studio.

     

    Workgroup - Bitbucket Cloud token error

     

    If you see this message, please follow the instructions above.