Bitbucket Server + Slack
Connect Bitbucket Server and Slack to Speed Up Your Development Workflows
Get code activity, pull request updates, and pipeline alerts straight into your team's Slack channels.

Why integrate Bitbucket Server and Slack?
Bitbucket Server is the on-premise source control platform engineering teams use to manage code repositories, pull requests, and CI/CD pipelines — and Slack is where those same teams talk to each other every day. Keeping everyone informed about code changes, build statuses, and review requests without flooding inboxes or chasing down teammates is a constant headache. Connecting Bitbucket Server with Slack fixes that by delivering the right repository events to the right people at the right time.
Automate & integrate Bitbucket Server & Slack
Use case
Pull Request Review Notifications
When a developer opens, updates, or merges a pull request in Bitbucket Server, a formatted Slack message goes out automatically to the relevant team channel or directly to the assigned reviewer. The notification includes the PR title, author, branch details, and a direct link to the code. No more lag between PR creation and reviewer awareness.
Use case
Build and Pipeline Status Alerts
CI/CD pipeline results from Bitbucket Server get pushed to designated Slack channels the moment a build passes, fails, or is cancelled. Engineers and team leads get immediate visibility into pipeline health without polling the Bitbucket UI. Failed builds can trigger escalation messages to on-call engineers before anyone has to go looking.
Use case
Code Merge and Deployment Announcements
When a pull request is merged into a main or release branch in Bitbucket Server, tray.ai can post an automated announcement to a shared Slack channel so QA, product, and operations teams know what's coming. The message can include the feature or fix description, who merged it, and the target branch — no manual post-merge updates required.
Use case
Stale Pull Request Escalation
Unreviewed pull requests sitting idle too long are one of the most common engineering bottlenecks. tray.ai can run scheduled checks against Bitbucket Server, find PRs that have been open past a defined threshold, and send reminder messages in Slack — tagging assigned reviewers or notifying a team lead. Code reviews keep moving without anyone having to manually track outstanding work.
Use case
New Repository and Branch Activity Monitoring
When new repositories are created or specific branches — release, hotfix, and similar — are pushed to Bitbucket Server, tray.ai can send instant alerts to architecture, DevOps, or security channels in Slack. Repository sprawl, unexpected branch patterns, and critical release branches don't slip through unnoticed. Teams can get ahead of governance issues instead of cleaning them up after the fact.
Use case
Code Review Comment and Approval Updates
Every time a reviewer leaves a comment, requests changes, or approves a pull request in Bitbucket Server, the PR author and team get notified instantly in Slack. Feedback doesn't get buried in the Bitbucket interface. Teams can configure notifications to fire only on specific event types, so there's full awareness without constant noise.
Use case
Security and Compliance Event Alerting
Force pushes to protected branches, permission changes, repository deletions — these security-sensitive events in Bitbucket Server can be automatically flagged as high-priority Slack alerts routed to security or compliance channels. tray.ai's conditional logic lets teams set severity thresholds and route different event types to different stakeholders, so nothing critical gets buried in a generic feed.
Get started with Bitbucket Server & Slack integration today
Bitbucket Server & Slack Challenges
What challenges are there when working with Bitbucket Server & Slack and how will using Tray.ai help?
Challenge
Mapping Bitbucket Server Events to the Right Slack Audience
Bitbucket Server work spans multiple projects, repositories, and teams, which makes routing notifications to the correct Slack channels or individuals genuinely difficult. A blanket notification approach either drowns channels in irrelevant events or misses critical updates for the teams that actually need them.
How Tray.ai Can Help:
tray.ai's conditional logic and data mapping let teams build dynamic routing rules based on repository name, project key, branch pattern, or event type — sending each notification to the right Slack channel or user without writing any custom code.
Challenge
Handling On-Premise Bitbucket Server Connectivity
Unlike cloud-based services, Bitbucket Server lives on-premise or inside a private network. That creates real problems for integration platforms trying to receive webhook events or query the API securely. Standard cloud webhook setups often get blocked by firewalls or require network changes no one wants to make.
How Tray.ai Can Help:
tray.ai supports secure connectivity to on-premise Bitbucket Server deployments through its enterprise networking options, so teams can safely connect their private Bitbucket instance to Slack without exposing internal infrastructure to the public internet.
Challenge
Notification Fatigue from High-Volume Repository Activity
Active engineering teams can generate hundreds of Bitbucket Server events per day across commits, comments, and branch operations. Without filtering, Slack channels get noisy fast — and once developers start ignoring notifications, the whole integration stops being useful.
How Tray.ai Can Help:
tray.ai supports fine-grained filtering rules so teams control exactly which event types, repositories, branches, or authors trigger Slack notifications. Digest-style aggregation templates cut noise further by batching multiple events into a single daily or hourly summary.
Challenge
Keeping Slack Messages Actionable and Readable
A raw Bitbucket Server event payload dumped into Slack is cluttered and easy to ignore. Developers need notifications that surface the right context — links, author names, branch details, a clear next action — without having to navigate back to Bitbucket to figure out what happened.
How Tray.ai Can Help:
tray.ai's data transformation layer lets teams shape Bitbucket Server event payloads into structured Slack Block Kit messages with formatted sections, inline buttons, direct links, and dynamic field values — so every notification is readable and immediately actionable.
Challenge
Keeping Integrations Working Through Bitbucket Server Upgrades
Internal infrastructure teams upgrade Bitbucket Server periodically, and API changes or webhook format updates can silently break existing integrations. Missed notifications or workflow failures may go undetected for days, and engineering teams rarely have spare bandwidth to audit integration scripts after every upgrade cycle.
How Tray.ai Can Help:
tray.ai handles connector versioning and API compatibility, so when Bitbucket Server updates its API or webhook schema, tray.ai's maintained connectors absorb those changes without teams having to rewrite or redeploy their workflows.
Start using our pre-built Bitbucket Server & Slack templates today
Start from scratch or use one of our pre-built Bitbucket Server & Slack templates to quickly solve your most common use cases.
Bitbucket Server & Slack Templates
Find pre-built Bitbucket Server & Slack solutions for common use cases
Template
Bitbucket Server Pull Request Opened → Slack Reviewer Notification
This template listens for new pull request creation events in Bitbucket Server and sends a formatted Slack message to the appropriate channel or reviewer, including PR title, description, source and target branches, and a direct link.
Steps:
- Trigger: New pull request is opened in a specified Bitbucket Server repository
- Transform: Extract PR metadata including title, author, branch names, and URL
- Action: Post a formatted notification message to a designated Slack channel or user
Connectors Used: Bitbucket Server, Slack
Template
Bitbucket Server Build Failed → Slack Escalation Alert
When a Bitbucket Server pipeline build fails, this template immediately sends an alert to a configured Slack channel, tagging the commit author and optionally the on-call engineer, with build logs and a direct link to the failed pipeline run.
Steps:
- Trigger: Pipeline build status changes to failed in Bitbucket Server
- Transform: Compile build failure details including commit SHA, author, branch, and error summary
- Action: Send an urgent Slack alert to a DevOps or engineering channel with all relevant context
Connectors Used: Bitbucket Server, Slack
Template
Stale PR Digest → Daily Slack Summary
This scheduled template queries Bitbucket Server for pull requests that have been open and unreviewed beyond a configurable number of days, then posts a daily digest to a Slack channel so engineering managers can spot review bottlenecks at a glance.
Steps:
- Trigger: Scheduled daily run at a configured time (e.g., 9 AM team local time)
- Transform: Query Bitbucket Server for open PRs exceeding the review age threshold and compile a list
- Action: Post a structured Slack digest with PR titles, authors, ages, and review links to the team channel
Connectors Used: Bitbucket Server, Slack
Template
Bitbucket Server PR Merged → Cross-Team Slack Announcement
Every time a pull request is merged into a designated branch in Bitbucket Server, this template posts a structured announcement to one or more Slack channels, notifying QA, product, and operations stakeholders of incoming changes automatically.
Steps:
- Trigger: Pull request is merged in Bitbucket Server on a target branch (e.g., main, develop)
- Transform: Extract merge details including merged PR title, author, related ticket references, and branch
- Action: Post a formatted merge announcement to configured Slack channels for QA, product, or release teams
Connectors Used: Bitbucket Server, Slack
Template
Bitbucket Server Force Push or Branch Deletion → Security Slack Alert
This template monitors Bitbucket Server for high-risk repository events — force pushes to protected branches or repository deletions — and fires an immediate high-priority Slack alert to a security or compliance channel with full event context.
Steps:
- Trigger: Force push or branch deletion event detected in Bitbucket Server
- Transform: Extract event metadata including actor, repository, branch name, and timestamp
- Action: Post a high-priority Slack alert to the security channel with event details and recommended follow-up
Connectors Used: Bitbucket Server, Slack
Template
PR Approval or Change Request → Slack Author Notification
When a reviewer approves a pull request or requests changes in Bitbucket Server, this template sends a direct Slack message to the PR author with the reviewer's feedback summary and a link to the full review, so nothing sits waiting to be noticed.
Steps:
- Trigger: PR review status changes to approved or changes-requested in Bitbucket Server
- Transform: Collect reviewer name, review status, comment summary, and PR link
- Action: Send a direct Slack message to the PR author with the review outcome and next steps
Connectors Used: Bitbucket Server, Slack