Bitbucket integration

Integrate Bitbucket commits, branches, and pull requests with ClickUp tasks. This allows you to:

  • See all Bitbucket activity related to a task directly in ClickUp.

  • Optionally receive ClickUp notifications when new Bitbucket activity items are added to tasks.

  • Automatically (or manually) attach Bitbucket activity to ClickUp tasks.

  • Automatically change Statuses with Bitbucket actions by adding the ClickUp task id to your commits using this format #{taskID}[status] For example: #1abc2de[closed]

Screenshot of a Bitbucket task activity notification.

What you'll need

Authorize ClickUp to connect to Bitbucket

You can integrate ClickUp and Bitbucket.org or the self-hosted version Bitbucket. The authorization process is different depending on which version of Bitbucket you use.

Option 1: Authorize a Bitbucket.org account

Note: Only ClickUp admins can attach repositories to your Team's Spaces.

  1. Open the App Center.
  2. Click Bitbucket.
  3. Click Activate Bitbucket for Team.
  4. Click + Add Bitbucket.
  5. Select No, I use bitbucket.com and click Link Bitbucket.

    Screenshot of the prompt to select the type of Bitbucket account you use.
  6. If you aren't logged in, you'll be prompted to log into your Bitbucket.org account

  7. Review the permissions required and click Grant access

Screenshot of the permissions message to authorize ClickUp.

Now that you've authorized your account, proceed to the next step of attaching Bitbucket repositories to your Workspace.

Option 2: Authorize a self-hosted Bitbucket account

If you're using a self-hosted version of Bitbucket, you can authorize ClickUp by creating an HTTP access token. Learn more about Bitbucket HTTP access tokens.

  1. Open the App Center.
  2. Click Bitbucket
  3. Click Activate Bitbucket for Team
  4. Click + Add Bitbucket
  5. Select Yes, I use a hosted version of Bitbucket then follow the next steps in Bitbucket.

    Screenshot of the option to use hosted version of Bitbucket.
  6. In your hosted Bitbucket, click on your user profile avatar at the top right.

  7. Select Manage account.

    Screenshot of the Bitbucket user profile menu.
  8. Select HTTP access tokens in the left sidebar.

  9. Create a new access token with admin permissions for both Projects and Repositories.

  10. Copy the HTTP access token provided.

  11. Back in ClickUp, paste the copied token into the Access token field.

  12. Enter your Bitbucket account details including:

    • Host url

    • Canonical Url (Optional)

    Screenshot of the Bitbucket account details.
  13. Select your preferences:

    • Use hosted secret?

    • Static IP

  14. Click Link Bitbucket.

Now that you've authorized your account, proceed to the next step of attaching Bitbucket repositories to your Workspace.

Attach Bitbucket repositories to your Workspace

ClickUp allows multiple people to authorize Bitbucket within your Workspace, and also permits you to customize which repositories are shared with your Workspace.

This means that you can authorize your personal account without attaching all of your repositories; you can customize which ones to attach.

Attaching a repository does not give users access to your repository's codebase in anyway. It simply allows users to attach history items for that repository to the Space(s) you specify.

Note: You can only associate Bitbucket repositories where you have admin access.

Screenshot of Bitbucket repositories and the option to add them to ClickUp.

Step 3: Select which Spaces are attached to your Repositories

You can customize which Spaces that repositories are attached to by expanding the dropdown to the right of Team Repos. In order to attach Bitbucket items to tasks, the Space must be attached to the repository.

Screenshot linking Bitbucket repositories with ClickUp Spaces.

Automatically associate Bitbucket activity in ClickUp

ClickUp will automatically pick up any new activity and associate it with tasks.

To enable this, you must:

Add a ClickUp task ID in any part of the pull request title, branch name, or commit message in one of these formats:

#{task_id}

CU-{task_id}

{custom_task_id}

For example:

#1abc2de

CU-1abc2de

prefix-1

Manually associating Bitbucket Activity

Screenshot of the Bitbucket icon on a ClickUp task.
  1. Click the Bitbucket icon on any task

  2. Select a Repo

  3. Select a Branch

  4. Attach your commit

Automatically change task Status via Bitbucket

You can also change the status of a task from a commit or pull request.
To do this:

Add the ClickUp task ID in any part of the commit message, as well as the status you want inside brackets.
For example: #ud5b[ready]

Animation of a task status change from a Bitbucket git push.

Note: You can also link task IDs from Bitbucket back to ClickUp!

Screenshot of a commit in Bitbucket.
  1. Go to repository settings

  2. Click Links

  3. Add new link

  4. Link type: Custom

  5. Link URL: app.clickup.com/t/\1

  6. Link key: CU-(\w{3,10})(\[\w+\])?

This works for both commits and pull requests.

Actions

Quickly and easily create new branches from within ClickUp with our quick actions.

  1. Click on the Bitbucket icon to open the Git modal

  2. On the left are a variety of auto-generated quick copy options like suggested name, command to checkout and link a new branch locally, command to link a single commit, or a command to open a pull request

Screenshot of the git branch modal on a ClickUp task.

You can customize the auto-generated name used in these options under the Bitbucket integration settings!

Screenshot of the Bitbucket branch name settings.

Pull requests

Now, you can create pull requests from within ClickUp or link existing ones! To create a new pull request in ClickUp:

  1. Click on the Bitbucket icon on the task you would like to link it to and click the "New Pull Request" button.

  2. In the modal, a suggested pull request title will be pre-filled with a suggested title. If you don't like the auto-generated title, you can adjust it in the Bitbucket integration settings.

  3. Select a target and source branch

  4. Enter a description

  5. Create the pull request

As soon as you create a pull request in ClickUp or link an existing one a link to the associated ClickUp task will be added to the pull request!

Screenshot of a task linked notification in Bitbucket.

Once a pull request is linked you will be able to see who opened it, the reviewer (if one is assigned), CI/CD status, and pull request status (open, review requested, under review, merged, closed) all from within the linked ClickUp task!

Screenshot of pull request activity in ClickUp's git modal.

Having trouble with Bitbucket?

Read our troubleshooting doc or ask Bitbucket customer support here.

Remove the Bitbucket integration

Only Workspace owners and admins can disable integrations.

To remove the integration, from the App Center:

  1. Select Bitbucket.
  2. Scroll down and click Remove authorization for my Bitbucket repositories.

Was this article helpful?