Plane and Bitbucket pull request automation

Link Bitbucket Cloud or Bitbucket Data Center pull requests to self-hosted Plane work items so states update automatically. Issue sync is not part of this integration, so the issues themselves stay in Plane.

On this page

How Plane and Bitbucket pull request automation works

Engineers on your team review code in Bitbucket while work is tracked in a self-hosted Plane workspace, so the practical question is whether a pull request can move the Plane work item it belongs to. The Bitbucket integration does this for pull requests: it links a pull request to a Plane work item and updates that item's state automatically as the pull request moves. It is a Pro plan feature, and it supports both Bitbucket Cloud and self-hosted Bitbucket Data Center. It is configured through Plane's documented Bitbucket setup, not a custom connector your team would need to build and maintain.

The integration is narrower than many teams expect. It covers pull request automation only. It does not sync issues in either direction, so creating, editing or closing a Plane work item will not create or change a Bitbucket issue, and the reverse is also true. Plan on keeping issues in Plane as the system of record, and treat Bitbucket as the place where code review happens. Teams that need issues to live in both tools, or that depend on comments flowing back and forth, should confirm the exact behavior with Plane before they design a workflow around it, since the documentation describes pull request automation as the only supported direction.

Before you enable it, confirm three things with your Plane administrator and your Bitbucket owner: that the workspace is on a plan that includes the Bitbucket integration, which the documentation marks as Pro, whether you run Bitbucket Cloud or Data Center, and which work item identifiers your branches and pull request titles will carry so Plane can match them. Check the Plane Bitbucket integration documentation for the current setup steps and any Data Center prerequisites, because the configuration differs between the two Bitbucket products.

What you need before connecting Bitbucket to Plane

Bitbucket pull request automation in Plane depends on four things lining up: the right Plane plan, the right edition of Plane, the right Bitbucket target, and people with the access to configure both sides. Check these before any app or credential work starts, because a gap in one of them usually surfaces only when the integration page refuses to connect.

Pro plan on self-hosted Plane

The Bitbucket integration is marked Pro, so your self-hosted instance must be on a plan that includes it. Plane's pricing page lists Pro among its paid plans, and the integration is not part of the Free feature set. Confirm the plan tier against Plane's current pricing before you scope the work, and ask whether seat counts will change once the integration is enabled for your teams. Confirm the Pro requirement before anything else.

Plane pricing

Commercial Edition for a paid plan

A self-hosted Community install cannot hold a paid plan. To move to Pro, the instance must first switch to the Commercial Edition, which uses a license key and counts seats by users with paid roles. The Community Edition is AGPL-3.0 licensed and matches the Free tier feature set, so an install that stays on Community will not get the Bitbucket integration. Plan this switch as part of the rollout, not as an afterthought.

Plane editions and versions

Bitbucket Cloud or Data Center target

Decide which Bitbucket you connect to before you configure anything. Plane supports Bitbucket Cloud and self-hosted Bitbucket Data Center, and the setup differs between them, including where the app or credentials are created and which hostnames Plane calls. Record the exact Bitbucket URL, workspace or project keys, and the repositories that should send pull request events. Mixing the two targets in one configuration is a common source of confusion.

Admin accounts on both sides

You need a Plane workspace admin who can enable integrations, and a Bitbucket administrator who can create the OAuth consumer or app credentials and grant repository access. Pull request automation also depends on each developer linking their own identity, so confirm that team members can sign in to Plane and have Bitbucket accounts with access to the target repositories. Name a single owner for each side so credential rotation and access reviews have a clear contact.

Network reachability from Bitbucket

Bitbucket must be able to send webhook events to your Plane instance, which means the instance needs a URL that Bitbucket Cloud or your Data Center server can reach. For self-hosted Plane behind a firewall, VPN or private network, check inbound routes, TLS certificates and any proxy rules before testing. Bitbucket Data Center also needs to reach Plane, and Plane needs to reach Bitbucket for state updates. Document the paths in both directions with your network team.

Exact credential requirements

The OAuth or app credential type, required scopes, redirect URLs and callback settings depend on the Bitbucket target and the Plane version you run. Do not copy these values from older posts or other integrations. Read the Bitbucket configuration page for your version in the Plane docs and confirm each field with your Bitbucket administrator before creating the credentials, and store the resulting secrets in your approved secrets manager.

Configure Bitbucket for Plane

Configuring the Bitbucket integration on self-hosted Plane

This sequence connects Bitbucket Cloud or Bitbucket Data Center to a self-hosted Plane instance so pull requests link to work items and move their states. Each step ends with a check, so a failure surfaces where it happens. Issues stay in Plane because this integration covers pull request automation only.

  1. Confirm the Pro plan on the instance

    The Bitbucket integration is marked Pro, so the instance needs a paid plan before the setting appears. A self-hosted Community install must first switch to the Commercial Edition, then apply a license key for the plan. The instance administrator completes this step and confirms the Bitbucket option is visible in the workspace integration settings. If it is missing, check the plan and license before continuing, because every later step depends on it.

  2. Create Bitbucket credentials for your deployment

    The Bitbucket administrator creates credentials for the deployment type you run, either Bitbucket Cloud or self-hosted Bitbucket Data Center. Use the authentication method and permission scopes listed in Plane's Bitbucket configuration guide, and limit access to the repositories Plane should link. Store the secret in your secrets manager and record the owning service account. The step is done when the credential exists, has the documented scopes, and is recorded in your change log.

  3. Enter the credentials in Plane

    In the instance's Bitbucket integration settings, enter the deployment type, the host address for Data Center, and the credentials from the previous step. Use the field names shown in Plane's configuration guide, and keep the secret out of screenshots and tickets. Save the configuration, then reload the page to confirm the values persisted. The check is a saved configuration that shows as connected, with no error on the settings page.

  4. Connect the Bitbucket workspace to Plane

    A Plane workspace administrator starts the connection from the Bitbucket integration page and authorizes access to the Bitbucket workspace. Sign in with the account that owns the credential, so the link belongs to a service identity that survives staff changes. Confirm that the Bitbucket workspace name matches the one your engineers use. The check is a Bitbucket workspace that shows as connected in Plane, with no pending authorization.

  5. Link repositories to Plane projects

    Choose each repository that should update Plane and map it to the Plane project that owns its work items. Where possible, map each repository to one project, so a pull request does not update work items in a project nobody expects. Record the mapping in your change log so reviewers can trace it later. The check is that each linked repository shows its Plane project in the integration settings, and that unlinked repositories show no mapping.

  6. Test a pull request against a work item

    Create a throwaway work item in Plane and label it as a test. Open a pull request in a linked repository and include the work item identifier in the pull request title or description. Check the Bitbucket integration documentation for the field Plane reads, and use that field. The check is that the pull request reference appears on the work item. If it does not appear, confirm the identifier format and repository mapping before retesting.

  7. Confirm the state change on merge

    Merge the test pull request and check that the linked work item moves to the state you configured for merged pull requests. Repeat with an open pull request to confirm the other transition. If the state does not change, review the repository mapping and the credential scopes before running the test again. The check is a work item whose state matches the expected transition, with the change visible in its activity history.

How pull request references move work items

The Bitbucket integration moves a work item only when a pull request carries a reference to it, so the team has to agree on that reference before the first pull request is opened. Plane links pull requests to work items and updates their state automatically, but the link depends on Plane finding the work item identifier in the text Bitbucket sends. Confirm in the Plane Bitbucket integration docs where the identifier must appear, whether that is the branch name, a commit message or the pull request title, and whether a pull request with several references updates several work items. Illustrative example: a branch named after PROJ-142 would link to that work item if the docs confirm branch names are scanned. Test each location in a sandbox project before choosing one convention.

Once the link works, the mapping decides what the board shows. The team should confirm which pull request events Plane reacts to, such as opening, review activity and merge, and which workflow state each event sets. The mapping depends on the workflow states configured in the Plane project, so a target state must exist in that project before it can be used. Illustrative example: a project with Backlog, In Progress, In Review and Done states could move work to In Progress on open, In Review on review and Done on merge. Write the agreed mapping as a short table with event, target state and owner, and sign it off with the people who run the board before rollout.

Merge is the event most likely to be misread. A merge into a long-lived release branch may not mean the work is finished for the customer, so the team should decide whether that merge sets Done or an intermediate state such as Ready to release. Check which branch names trigger the mapping as well, since a merge into a feature or staging branch could otherwise close work that has not shipped. Record the decision next to the mapping so future changes to the branching model are reviewed against it.

Bitbucket Cloud or Data Center: which target fits your team

Bitbucket Cloud is the hosted version of Bitbucket that Atlassian operates. Your self-hosted Plane instance calls out to Bitbucket Cloud over the public internet, so the integration depends on your Plane server being able to reach Bitbucket's endpoints through your outbound firewall and proxy. Because Bitbucket Cloud uses a publicly trusted certificate, you normally do not need to install a custom certificate authority on the Plane side. Ownership of the Bitbucket side sits with your Bitbucket workspace administrators, not with the team that runs Plane.

  • Outbound network path: Confirm that the Plane application and worker containers can reach Bitbucket Cloud over HTTPS. If egress goes through a proxy, the proxy allow list must include the hosts the integration uses.
  • Certificate trust: Public certificates chain to standard roots, so the default trust store is usually sufficient. Verify this from inside the Plane containers, not from your laptop.
  • Workspace ownership: A Bitbucket workspace administrator creates or approves the OAuth consumer or app credentials that Plane uses, and decides which repositories are exposed.
  • Plan and permissions: Ask whether your Bitbucket plan and your personal role allow creating the required app and webhook settings for the repositories in scope.
  • Data location: Repository content and pull request metadata stay in Atlassian's hosted service, so review that against your data residency and third-party processor requirements.

Before you start, ask the Bitbucket administrator which workspace owns the repositories, who can approve new OAuth credentials, and whether egress rules already permit the required outbound connections from the Plane network.

Which data moves between Bitbucket and Plane

This table maps Bitbucket pull request events and identifiers to the Plane work item fields and states they can affect, and lists what stays outside the integration. Read the first four rows as what the integration does, and the last rows as what your team must keep working in Plane directly. Confirm exact field mappings and event handling against the current Bitbucket integration docs before you design your workflow.

Event or identifierBitbucket sourcePlane targetNotes
Pull request opened or updatedPull request event with its linked work item key in the title, branch or descriptionWork item linked to the pull requestLinking depends on the work item identifier appearing in Bitbucket. Confirm the accepted reference format in the docs.
Pull request mergedPull request state changed to mergedWork item state updated automaticallyConfirm which Plane state the merge maps to and whether it depends on your workflow settings.
Pull request declined or closedPull request state changed to declinedWork item state updated automatically or left unchangedConfirm the default behavior for declined pull requests in your version.
Work item identifierWork item key placed in branch name, title or descriptionPlane work item identifierA missing or mistyped key means no link. Define a naming convention for branches and titles before rollout.
Issue syncNot available in BitbucketNot syncedThe integration does not create or update Plane work items from Bitbucket issues. Keep issues in Plane.
Comments and discussionPull request comments and reviewsNot syncedReview comments stay in Bitbucket and are not copied into Plane work item comments.
User attributionBitbucket author and reviewer accountsNot mapped to Plane usersConfirm how the integration identifies the actor on each automated change before you rely on it for audit evidence.
Workspace and project scopeBitbucket repository and workspacePlane workspace and projectConfirm how repositories are connected to Plane projects and which Pro plan features the connection requires.

Securing the Bitbucket link and the Plane instance

The Bitbucket link is only as safe as the credentials behind it, the repositories it can see, and the Plane instance that receives its events. The cards below cover the controls to set and confirm on both sides before pull request automation goes live. Confirm each setting in your own environment, since exact menu names and options depend on your Bitbucket and Plane versions.

Use least-privilege Bitbucket credentials

Create the connection under a dedicated service identity rather than a personal account, so the link does not stop working when an engineer leaves. Grant only the repository permissions the pull request automation needs, and confirm in Bitbucket which scopes the integration actually requests before you approve it. Review the granted permissions after setup, because broader access granted for testing often remains in place.

Bitbucket integration docs

Restrict which repositories are linked

Limit the connection to the repositories whose pull requests should move Plane work items, instead of granting access across the whole Bitbucket workspace. Keep a short written list of linked repositories and the Plane projects each one updates. Revisit the list when repositories are archived, renamed or transferred to another workspace.

Serve the Plane endpoint over TLS

Bitbucket delivers pull request events to your Plane instance, so the public address Plane exposes must use HTTPS with a valid certificate chain that Bitbucket trusts. Check the certificate expiry date, the redirect from HTTP to HTTPS, and that your reverse proxy or ingress passes the request path the integration expects. An expired certificate silently stops state updates.

Control who can connect integrations

Decide which Plane workspace roles may create or change an integration connection, and keep that permission with administrators rather than every member. Plane lists roles and access in its own documentation, so confirm the current role names on your plan. Review existing connections when a team reorganizes, because a connection created by someone who has since left still updates work items.

Review the Plane audit trail where available

Check whether your Plane plan includes API-enabled audit logs, which the pricing page lists as an Enterprise feature for self-hosted Plane. Where audit logs are available, review events for integration creation, changes and removal. Where they are not, record connection changes in your own change process so you can show who linked each repository and when.

Plane pricing

Confirm the Bitbucket Data Center network path

For self-hosted Bitbucket Data Center, confirm that Bitbucket can reach the Plane endpoint and that the Plane instance can reach Bitbucket for API calls, both across your firewall and proxy rules. Keep the allowed paths as narrow as your setup permits and document them with the rest of the integration configuration. Validate the path with a test pull request before relying on it.

Why pull requests do not update Plane work items

This table lists the most common reasons a Bitbucket pull request fails to move a Plane work item, with the cause and fix for each. Check the rows in order, since the identifier and connection checks rule out the most frequent problems before you investigate the network or the plan. The main takeaway is that most failures trace to the work item reference, the workspace connection, or the Pro plan requirement rather than to Bitbucket itself.

SymptomLikely causeFix
No state change after a pull request opensPull request title, branch name or description lacks the Plane work item identifierInclude the exact work item identifier in the title, branch or description, then reopen or update the pull request to trigger processing
No state change on any pull requestBitbucket workspace is not connected to the Plane workspaceComplete the connection in Plane's integration settings and confirm the Bitbucket workspace appears as linked
Integration cannot be added or fails to connectBitbucket Data Center host is unreachable from the Plane instanceTest network routing, DNS and firewall rules from the Plane containers or nodes to the Bitbucket Data Center URL
Connection fails with a TLS or handshake errorBitbucket Data Center uses a certificate the Plane instance does not trustAdd the internal certificate authority to the trust store used by Plane's services, then restart them and retest
Integration option is missing or disabledCommunity Edition instance without the Pro planConfirm the edition and plan; the Bitbucket integration requires the Commercial Edition on a Pro plan with a license key
Work item moves to an unexpected state or stays putStatus mapping does not match the states in the Plane workflowReview the state mapping for open, review and merged events and align it with the statuses your project uses

Why teams that need issue sync must keep issues in Plane

If your team needs work items and pull requests tied together, the work items must live in Plane. The Bitbucket integration handles pull request automation only, and issue sync between Bitbucket and Plane is not available. That means nothing created in Bitbucket will appear in Plane as a work item, and a Plane work item will not be created or updated from a Bitbucket issue. The practical consequence is that the people who plan work must create and maintine their items in Plane first, then reference those items in branch names, commit messages or pull request titles so the integration can link the code review to the right record.

This split is a deliberate trade-off. Plane remains the system of record for priorities, cycles, modules, estimates and status, while Bitbucket holds code, diffs, reviews and merge decisions. Teams should agree on this boundary before rollout, because a developer who opens an issue in Bitbucket will expect it to show up in Plane, and it will not. Confirm the exact branch and title conventions the integration reads in the Plane docs for the Bitbucket integration, and write them into your contribution guide so reviewers and engineers follow the same pattern.

When issues originate in another tracker, the migration path matters as much as the integration. Plane documents importers for Jira, Linear and Asana, and the Jira importer is available on Plane Cloud and on all plans of the self-hosted Commercial Edition, not on the Community Edition. Before you migrate, confirm which edition and plan you will run, because the importer's availability depends on it, and check that migrated items receive identifiers your branch convention can reference. Old Bitbucket-era references, if any, will not be rewritten automatically, so decide whether historical pull requests need a manual mapping.

Questions teams ask before connecting Bitbucket to Plane

Does Plane's Bitbucket integration support Bitbucket Data Center?

Yes. Plane's Bitbucket integration supports both Bitbucket Cloud and self-hosted Bitbucket Data Center, and it links pull requests to Plane work items with automated state updates. Confirm the exact Data Center version and network path your team runs before the build starts, because the connection has to reach your Bitbucket server from the Plane instance. Check the Plane Bitbucket integration docs for the current setup steps and any version notes.

Does the Bitbucket integration require the Pro plan on self-hosted Plane?

Yes. Plane marks the Bitbucket integration as a Pro feature, so the instance needs a plan at that tier before the integration is available. On self-hosted Plane, paid plans require moving from the Community Edition to the Commercial Edition and activating a license key. Seats are counted by users with paid roles, so ask your vendor or check Plane pricing for the current Pro price per user before you size the rollout. Any figure beyond the listed range should come from a written quote.

Do issues sync between Bitbucket and Plane?

No. The Bitbucket integration covers pull request automation only, so pull requests are linked to Plane work items and their states update automatically. Bitbucket issues and Plane work items are not synchronized. Teams that need issue sync must keep issues in Plane and reference the work item from the pull request, so the tracker of record stays in one place.

How much effort does the Bitbucket setup take, and what drives it?

The effort depends on three things: how ready the Plane instance is, how much access your Bitbucket administrator can grant, and how complex your workflow mapping is. A Plane instance that already runs on the right edition and plan with a working domain needs less preparation than one still being installed. Bitbucket work involves creating the connection and deciding which repositories and branch naming conventions link to work items. Mapping Plane states to pull request events is the step most likely to take longer than expected. No duration is supplied for this integration, so ask any provider for a written, scoped estimate.

Can our own team set up the Bitbucket integration without a partner?

Often yes, if your team already operates the self-hosted Plane instance and has a Bitbucket administrator available. The steps are configuration rather than custom code, and Plane publishes setup guidance for both Bitbucket Cloud and Data Center. The parts that tend to need outside help are the workflow mapping decisions, testing across repositories with different branching habits, and documenting the result for audit or change control. If your team lacks one of those skills, a fixed-scope engagement can cover them in writing.

What do we need to supply before the work starts?

Prepare four items: a running self-hosted Plane instance on a plan that includes the integration, administrator access to the Plane workspace, a Bitbucket administrator who can create the connection and grant repository access, and a written list of projects, repositories and the Plane states that should change when a pull request opens, merges or closes. Also confirm network reachability between Plane and your Bitbucket endpoint. Gather these before requesting a quote so the scope reflects your real environment.

Should we keep Bitbucket issues in Plane or leave them where they are?

Keep issues in Plane if you need one tracker of record, since the Bitbucket integration does not sync issues. Leaving issues in Bitbucket means pull requests link to a Plane work item only where your team creates a matching item, which can split planning across two systems. Decide this before setup, because it determines whether the integration is enough or whether you also need a migration plan. The Plane Jira importer shows how Plane handles imported work items if you are consolidating from another tracker.

How DeployOpen works on this

DeployOpen plans and implements the Plane Bitbucket pull request integration inside your own infrastructure, with the Pro plan and self-hosted instance settings confirmed first. Engagements are fixed-scope, so the Bitbucket connection, its testing and its handover are agreed in writing before work starts.

How we scope

  • Confirm whether your Bitbucket is Cloud or self-hosted Data Center, since the setup differs.
  • Confirm the Plane plan and edition in use, because the integration is marked Pro.
  • Agree in writing which repositories, projects and workflow states the pull request automation will cover.
  • Record that issue sync is not part of this integration, so issues stay in Plane.

How we build

  • Configure the Bitbucket connection on the self-hosted Plane instance following the vendor setup steps.
  • Map pull request events to the Plane work item states your team has agreed.
  • Test linking, opening, merging and closing pull requests against sample work items in a non-production workspace.
  • Document the configuration, credentials and permissions used for the connection.

How we hand over

  • Deliver a written configuration record covering the Bitbucket connection, state mappings and access granted.
  • Walk your platform and engineering team through how work items are linked to pull requests.
  • Agree in writing how credentials are rotated and who approves changes to state mappings.
  • Provide the test results and a list of open items to confirm with your administrators.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers.
  • Retainers can cover checks after Plane upgrades and changes to your Bitbucket configuration.
  • Retesting of the integration can be scheduled when your repository or workflow setup changes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.