AgentSDEDocs
Open console

Bitbucket

Connect a Bitbucket workspace so agents can read code and open pull requests there. Bitbucket is where the code lives, not where the work comes from · pair it with an issue tracker so agents have something to pick up.

4 min readUpdated 2026-08-12 · Priya NEdit this page

#Bitbucket is not an issue tracker

This is the one thing to get right first. AgentSDE uses Bitbucket for repositories and pull requests · it does not read issues from Bitbucket. A Bitbucket connection on its own gives an agent a place to write code, but no work to start from.

So pair the workspace with a real issue tracker · Jira is the natural fit. The issue lives in Jira, the code and pull request live in Bitbucket, and AgentSDE joins the two. The Bitbucket connection contributes repositories, pull requests and pipeline signals; the tracker contributes the work.

#Grant the workspace

Bitbucket uses OAuth (3LO) · you authorise AgentSDE on a Bitbucket workspace once, and it receives a token scoped to what you approved (not your password).

1

Start from Integrations

Settings → Integrations → Bitbucket sends you to bitbucket.org to authorise the workspace.

2

Approve the access

In plain terms AgentSDE asks to: read and write repositories and pull requests, register a webhook, identify the account, and stay connected in the background. The underlying scopes are repository, pullrequest, webhook, account and offline_access.

3

Select repositories

The workspace grant is made once and covers every repository you select inside it.

Settings → Integrations showing the Bitbucket provider card alongside GitHub, Jira and Slack.
Settings → Integrations · connect Bitbucket from the provider grid.
IntegrationsChoose Bitbucket
Authorise workspacebitbucket.org
Access grantedincl. stay-connected
RepositoriesSelect in the workspace
The Bitbucket connect flow · a one-time workspace grant covering the repositories you select.

#Pull request conventions

Agents open pull requests the same way as on GitHub · from their own branch, requesting the reviewers your workspace requires. Branch protection and required checks apply to an agent’s pull request exactly as they do to a person’s.

#Pipelines are read-only

AgentSDE can see Bitbucket Pipelines results but cannot drive them. A phase can react to the fact that a build failed, but an agent cannot start, stop, or restart a pipeline for you · that stays under your control.