Skip to main content

Bitbucket

Manage issues, browse files, and collaborate on snippets

J
Written by Johan Åkerman

Introduction

Connect Bitbucket to Sana to manage issues, browse repository files, and collaborate on snippets. In summary, the connector has the following key characteristics:

  • Category: Engineering

  • Connector type: Real-time

  • Auth type: OAuth

  • Hosting type: Managed

Capabilities

This connector is able to do the following:

Capability

List repositories

List snippets

Manage issues

Get files

Comment on issues

Comment snippets

Tools

While the capabilities above describe what the connector can do at a high level, the underlying tools show exactly which operations the agent can use when you ask Sana about Bitbucket. In practice, the agent may call one or more tools to achieve a single capability.

Tool

Create issue

Create issue comment

Create snippet comment

Get file from repository

Get issue

Get snippet

Update issue comment

Scope and permissions

This connector uses OAuth. When you connect your account, you will need to sign into your account and grant the required permissions:

Scope

Purpose

account

Read basic account information for the authenticated Bitbucket user (profile, username, UUID, etc.).

account:write

Update or modify the connected user's Bitbucket account data and settings.

team:write

Create and modify Bitbucket teams and team-level settings the user has permission to manage.

repository:write

Create, update, and delete repositories and their settings, including pushing changes and managing repo-level configuration.

pullrequest:write

Create, update, merge, and decline pull requests, as well as manage their comments and approvals.

snippet:write

Create, edit, and delete Bitbucket snippets owned by the user or teams they can write to.

issue:write

Create, edit, and delete issues and issue comments in repositories the user can access.

email

Read the primary and secondary email addresses associated with the connected Bitbucket account.

wiki

Create, edit, and delete wiki content for repositories the user can access.

webhook

Create, edit, and delete webhooks on repositories and/or teams that the user can manage.

Set up instructions

Prerequisites:

  • Your Sana workspace admin has enabled this integration – if the workspace admin has disabled the integration it won't appear in the list of available integrations.

Step 1: Go to the integrations page in Sana

In Sana, click on ... More in the sidebar, then select Integrations

Step 2: Find Bitbucket in the list of available integrations

Scroll to the Available integrations section and locate Bitbucket.

Step 3: Connect the integration

Click the integration card and select "Connect just for me", this will open a pop-up powered by Pipedream. Follow the steps in the pop-up to complete the set-up.

Step 4: Sign in to Bitbucket and approve the requested scopes

You'll be redirected to Bitbucket to go through their OAuth flow. Sign in and approve the scopes Sana needs to operate the connector.

Step 5: Complete the set up

You've successfully connected your Bitbucket account. Click Continue to complete the setup and start using the connector.

Known limitations

  • Repositories: The connector can list repositories, but can't read their metadata.

  • Reading snippets: The connector can list snippets and add comments, but can't read the actual content of a snippet.

Did this answer your question?