---
sourceDocument: Brazil IT Service Management
sourceDocumentLink: https://www.servicenow.com/docs/r/it-service-management

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil IT Service Management

ft:clusterId :

    - itsm

bundleId :

    - itsm

workflow :

    - Technology


---

# Bitbucket

# Bitbucket integration with DevOps Change Velocity {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Bitbucket integration with DevOps Change Velocity

ServiceNow DevOps Change Velocity enables customers to track Bitbucket repositories, commits, branches, and pull requests by integrating with Bitbucket Cloud.
This integration supports the Code (Repository) capability, allowing enterprises to gain visibility into their Bitbucket development activities directly within ServiceNow.
Show full answer Show less  

## Authentication Methods

Customers can connect their Bitbucket Cloud instances using one of the following authentication methods, each requiring specific setup steps and permissions:

* **Basic Auth:** Requires the Bitbucket Cloud user's email address and an API token with scopes such as read access to account, projects, pull requests, repositories, and webhook management. This method discovers repositories across all workspaces in the organization.
* **OAuth 2.0 - Authorization Code:** Requires creation of an OAuth consumer in Bitbucket with read permissions on account, projects, pull requests, and read/write on webhooks. The ServiceNow instance URL must be provided as a callback URL. This method also discovers repositories across all workspaces.
* **OAuth 2.0 - Client Credentials:** Similar to Authorization Code but intended for private consumers with the same permissions. Client ID and Client Secret from Bitbucket's OAuth consumer are needed. Callback URL must be set to the ServiceNow instance URL.
* **Access Token:** Generated per Atlassian documentation with permissions for reading account, projects, pull requests, and managing webhooks. Workspace ID is required from the Bitbucket workspace settings.

## Onboarding Bitbucket with DevOps Change Velocity

Customers can onboard Bitbucket into DevOps Change Velocity using three options depending on preference and environment:

* **Workspace UI:** Provides a guided experience to create, connect, discover, and configure Bitbucket instances within the DevOps Change Velocity workspace.
* **Service Catalog:** Enables onboarding through the ServiceNow Service Catalog interface.
* **Classic UI:** Allows connection and configuration using the traditional ServiceNow Classic UI.

## Practical Benefits for ServiceNow Customers

By integrating Bitbucket with DevOps Change Velocity, ServiceNow customers can centrally monitor and manage their Bitbucket repositories and development activities. This visibility helps improve change velocity tracking, supports governance, and streamlines DevOps workflows by correlating code changes with downstream processes in the ServiceNow platform.  
Connect to your Bitbucket instance to track Bitbucket repositories, commits, branches, and pull requests.

## Bitbucket integration overview {#bitbucket-integration-dev-ops__section_ppq_dlx_t2c}

DevOps Change Velocity supports the Code (Repository) capability for the Bitbucket tool.

## Authentication methods {#bitbucket-integration-dev-ops__section_pnd_mlx_t2c}

You can connect to Bitbucket Cloud using one of the following authentication methods:

Basic Auth

:   When you select the credential type as Basic Auth the repositories for all the workspaces in the organization are discovered. You need the email address and API token with scopes of your Bitbucket Cloud account to
    connect using Basic Auth. You can copy your email address by navigating to Profile avatar \> Personal settings \> Account settings \> Email of your Bitbucket Cloud account.

    To get the API token with scopes, perform the following steps:

    1. Select your profile avatar at the bottom-left of the Bitbucket sidebar, then select Account settings.
    2. From the Atlassian Account page, select the Security tab on the top navigation bar.
    3. Select Create and manage API tokens.
    4. Select Create API token with scopes.
    5. Give the API token a name and an expiry date, usually related to the application that will use the token and select Next.
    6. Select Bitbucket as the app and select Next.
    7. Select the following scopes (permissions) and select Next.
       * read:account --- Required to view users profiles.
       * read:project:bitbucket --- View your projects
       * read:pullrequest:bitbucket --- View your pull requests
       * read:repository:bitbucket --- View your repositories
       * read:webhook:bitbucket --- View your webhooks
       * write:webhook:bitbucket --- Modify your webhooks

    8. Review your token and select the Create token button.
    9. Copy the generated API token and either record or paste it into the application you want to give access.

OAuth 2.0 - Authorization Code
:   You must create the OAuth consumer in the Bitbucket tool with the required permissions before creating the OAuth record for Authorization Code. You can navigate to Workspace settings \> OAuth consumers \> Add consumer in Bitbucket to add the OAuth consumer. Select the following permissions for the OAuth consumer.

    * Account: Read
    * Projects: Read
    * Webhooks: Read and write
    * Pull requests: Read

    {#bitbucket-integration-dev-ops__ul_wqm_cbm_52c}  
    Ensure that the This is a private consumer option isn't selected. You must enter your ServiceNow instance URL in the Callback URL field in the following format.

        https://<instanceurl>/oauth_redirect.do


    You can create an OAuth 2.0 - Authorization Code credential by performing the steps specified in the [Set up OAuth 2.0 Authorization Code for Bitbucket Cloud](R_oAVaZTkF_fsPIKUMq4Iw "Set up OAuth 2.0 Authorization Code credentials for Bitbucket in DevOps Change Velocity to use a more secure authentication method.") procedure.
:
    Note:  
    When you select the credential type as Oauth 2.0 - Authorization Code for Bitbucket Cloud, the repositories for all the workspaces are discovered. This is a limitation from Bitbucket side

OAuth 2.0 - Client Credentials
:   You must create the OAuth consumer in the Bitbucket tool with the required permissions before creating the OAuth record for Client Credentials. You can navigate to Workspace settings \> OAuth consumers \> Add consumer in
    Bitbucket to add the OAuth consumer. Select the following permissions for the OAuth consumer.

    * Account: Read
    * Projects: Read
    * Webhooks: Read and write
    * Pull requests: Read

    {#bitbucket-integration-dev-ops__ul_ms1_nbm_52c}  
    Ensure that the This is a private consumer option is selected as well. You must enter your ServiceNow instance URL in the Callback URL field in the following format.

        https://<instanceurl>/oauth_redirect.do

    You can create an OAuth 2.0 - Client Credential record in the workspace UI while onboarding the tool. You need the Client Id and Client secret values of your Bitbucket workspace. Client ID of your Bitbucket tool is available in the OAuth consumers section of your workspace settings (Workspace settings \> OAuth consumers \> Add consumer) in the Key field.
    Client secret of your Bitbucket tool is available in the OAuth consumers section of your workspace settings (Workspace settings \> OAuth consumers \> Add consumer) in the Secret
    field.

Access Token
:   You can create the access token by performing the steps specified in the [Atlassian](https://support.atlassian.com/bitbucket-cloud/docs/create-a-workspace-access-token/) documentation. Ensure that the following permissions are provided while creating the access token:

    * Account: Read
    * Projects: Read
    * Webhooks: Read and write
    * Pull requests: Read

    {#bitbucket-integration-dev-ops__ul_xhh_tcr_52c}

    You also need the workspace ID of your Bitbucket workspace. Copy it from the Workspace ID field in the Workspace settings of your Bitbucket Cloud account.

## Get started {#bitbucket-integration-dev-ops__section_f2g_clx_t2c}

Use one of the following options to onboard Bitbucket. For a guided experience, use the workspace to onboard a tool. Alternatively, you can use the Service Catalog or Classic experience.
* **[Onboard Bitbucket to DevOps Change Velocity --- Workspace](https://www.servicenow.com/docs/jrPIEKFI_0zpQUyc0GwJIw)**   
  Create, connect, discover, and configure your Bitbucket instance using the DevOps Change Velocity workspace.
* **[Onboard Bitbucket to DevOps Change Velocity --- Service Catalog](https://www.servicenow.com/docs/wohVRcHZHeKbn7K47vWlsA)**   
  Create, connect, discover, and configure your Bitbucket instance using the ServiceNow Service Catalog.
* **[Onboard Bitbucket to DevOps Change Velocity --- Classic](https://www.servicenow.com/docs/4z1f9oGB6tHRQlADDPrjeQ)**   
  Create, connect, discover, and configure your Bitbucket instance using the Classic UI.

