Configure Bitbucket for Plane integration Pro
This guide walks you through setting up a Bitbucket application to enable Bitbucket integration for your Plane workspace on a self-hosted instance. Since self-hosted environments don't come pre-configured for Bitbucket, you'll need to create an OAuth consumer or application link, configure authentication, and set the necessary permissions to ensure seamless integration.
This guide covers configuration for both:
Bitbucket Cloud The standard cloud-hosted Bitbucket service at bitbucket.org
Bitbucket Data Center Self-hosted Bitbucket instances for organizations with specific compliance or security requirements
In this guide, you'll:
WARNING
Activate Bitbucket integration
After creating and configuring the Bitbucket application and configuring the instance as detailed on this page, you'll need to setup the Bitbucket integration within Plane.
Create Bitbucket Application
Follow these steps to register an OAuth consumer in your Bitbucket workspace, set the callback URL and scopes, and then configure your Plane instance so it can sync pull requests and commits.
Bitbucket Cloud
Log in to Bitbucket Cloud and navigate to your workspace.
Go to Workspace Settings → Apps & Features → OAuth Consumers.
Click Add consumer to begin the setup.
Provide a Name for your OAuth consumer.
Enter the following Callback URL, replacing
[YOUR_DOMAIN]with your actual domain:bashhttps://[YOUR_DOMAIN]/silo/api/oauth/bitbucket/auth/callbackSet permissions by selecting the required Scopes. The table below explains each scope:
Category Permission Explanation Account emailRead the user's primary email address. Account readRead the user's account information and workspace memberships. Repositories readRead access to repositories, including source code and metadata. Repositories writeWrite access to repositories, required for creating and updating refs. Pull requests readRead pull requests, comments, and activity on repositories. Pull requests writeCreate and update pull requests and post comments. Projects readRead project metadata and repository associations. Issues readRead issues and their comments on repositories. Issues writeCreate and update issues and post comments. Webhooks readRead webhook subscriptions on repositories and workspaces. Webhooks writeCreate and manage webhook subscriptions. Click Save to finalize the setup.
Configure Plane instance
Copy the Key and Secret from the newly created OAuth consumer.
Add these environment variables with the values to your Plane instance's
.envfile.bashBITBUCKET_CLIENT_ID=<key> BITBUCKET_CLIENT_SECRET=<secret> BITBUCKET_WEBHOOK_SECRET=<random-string>Save the file and restart the instance.
Once you've completed the instance configuration, activate the Bitbucket integration in Plane.

