Skip to content

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:

  1. Create and configure a Bitbucket application
  2. Configure your Plane instance

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

  1. Log in to Bitbucket Cloud and navigate to your workspace.

  2. Go to Workspace Settings → Apps & Features → OAuth Consumers.

  3. Click Add consumer to begin the setup.

  4. Provide a Name for your OAuth consumer.

  5. Enter the following Callback URL, replacing [YOUR_DOMAIN] with your actual domain:

    bash
    https://[YOUR_DOMAIN]/silo/api/oauth/bitbucket/auth/callback
  6. Set permissions by selecting the required Scopes. The table below explains each scope:

    CategoryPermissionExplanation
    AccountemailRead the user's primary email address.
    AccountreadRead the user's account information and workspace memberships.
    RepositoriesreadRead access to repositories, including source code and metadata.
    RepositorieswriteWrite access to repositories, required for creating and updating refs.
    Pull requestsreadRead pull requests, comments, and activity on repositories.
    Pull requestswriteCreate and update pull requests and post comments.
    ProjectsreadRead project metadata and repository associations.
    IssuesreadRead issues and their comments on repositories.
    IssueswriteCreate and update issues and post comments.
    WebhooksreadRead webhook subscriptions on repositories and workspaces.
    WebhookswriteCreate and manage webhook subscriptions.
  7. Click Save to finalize the setup.

Configure Plane instance

  1. Copy the Key and Secret from the newly created OAuth consumer.

  2. Add these environment variables with the values to your Plane instance's .env file.

    bash
    BITBUCKET_CLIENT_ID=<key>
    BITBUCKET_CLIENT_SECRET=<secret>
    BITBUCKET_WEBHOOK_SECRET=<random-string>
  3. Save the file and restart the instance.

  4. Once you've completed the instance configuration, activate the Bitbucket integration in Plane.