Atlassian Bitbucket Cloud

Atlassian Bitbucket Cloud

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Learn more
PostHog Wizard hedgehog

Connect Atlassian Bitbucket Cloud to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Connect your Bitbucket Cloud workspace to sync repositories, pull requests, commits, pipelines, and more.

Your credentials need the repository, pullrequest, pipeline, and account read scopes. Avoid app passwords — Atlassian is retiring them; use an API token or an access token instead.

Configuration

OptionDescription
Workspace
Type: text
Required: True

Your workspace ID — the part after bitbucket.org/ in your workspace URL.

Authentication type
Type: select
Required: True

Linking Atlassian Bitbucket Cloud to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select Atlassian Bitbucket Cloud
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
repositories

A git repository in the Bitbucket Cloud workspace.

Incremental, Full refreshupdated_on, created_on
pull_requests

A pull request in any repository of the workspace, in any state (open, merged, declined, or superseded).

Incremental, Full refreshupdated_on, created_on
commits

A commit reachable from any branch of any repository in the workspace, newest-first in topological order.

Incremental, Full refreshdate
pipelines

A Bitbucket Pipelines run (CI/CD build) in any repository of the workspace.

Incremental, Full refreshcreated_on
deployments

A deployment of a pipeline release to an environment, in any repository of the workspace.

Full refresh
workspace_members

A user's membership in the Bitbucket Cloud workspace.

Full refresh