How to get Microsoft Teams notifications from Atlassian Bitbucket Cloud

Optimize communication & enhance collaboration with our guide on how to get Microsoft Teams notifications from Atlassian Bitbucket Cloud. Learn more.
March 6, 2024
Productivity
Use-Case
Microsoft Teams
Bitbucket

Have you wondered how not to always jump into Bitbucket to see if your PRs are approved/rejected, Bitbucket pipeline failed, or a pull request created in a repo where you are an owner?
With Microsoft Teams Bitbucket Connector, you can configure the rules when you want to get notifications. You need to install it in the Marketplace, which is available in the Settings of your Bitbucket Workspace.
To begin with, you need to create an Incoming Webhook Connector standard Connector from Microsoft Teams.

How to get Microsoft Teams notifications from Atlassian Bitbucket Cloud
Use Incoming Webhook Connector from Microsoft Teams

How to get Microsoft Teams notifications from Atlassian Bitbucket Cloud

How to get Microsoft Teams notifications from Atlassian Bitbucket Cloud
Copy the Incoming Webhook URL to use it in Bitbucket

As a result, you will get a webhook URL that is used to receive notifications.
Create a notification rule for the pull requests in the settings of your repository.

How to get Microsoft Teams notifications from Atlassian Bitbucket Cloud
Setup a rule in Microsoft Teams Bitbucket Connector to receive notifications about Pull requests
How to get Microsoft Teams notifications from Atlassian Bitbucket Cloud
Pull request created event from Bitbucket is received in Microsoft Teams
How to get Microsoft Teams notifications from Atlassian Bitbucket Cloud
Pull request approved event from Bitbucket is received in Microsoft Teams

If you want to filter by the destination branch, you need to have a JavaScript regular expression which is checked against the destination branch. The simplest form is to actually create a rule per destination branch. F.e. if you need to get notifications when there is a pull request or a push towards master or release-candidate-XXX branches. You can create two rules with the destination branch filters: master and release-candidate.

To get notified about build status updates, you need to watch the commit status updates. Bitbucket does not differentiate how the status was updated (via the Bitbucket own pipeline or a 3-rd party continuous integration system like CircleCI or BuildKite).

You need to create a rule in Microsoft Teams Bitbucket Connector.

Create a rule for commit status events in Bitbucket to get notifications in Microsoft Teams
How to get Microsoft Teams notifications from Atlassian Bitbucket Cloud
When the Bitbucket pipeline reached the final status the notifications are coming into Microsoft Teams channels.

As a result, you will get the following notifications in Microsoft Teams.

How to get Microsoft Teams notifications from Atlassian Bitbucket Cloud
Microsoft Teams notifications about the Bitbucket pipelines status updates

Products we’re proud of

Articles you might like

Bring information from GitHub into Confluence
March 6, 2024
Bring information from GitHub into Confluence
Learn how to extract your technical documentation, files, and source code from Github to Confluence by integrating these two apps together. Read more.
Read more >
How to integrate Bitbucket Server with Jenkins Pipelines
February 28, 2024
How to integrate Bitbucket Server with Jenkins Pipelines
Streamline workflows with our step-by-step guide on integrating Bitbucket Server with Jenkins Pipelines. Improve collaboration & efficiency with our app now!
Read more >
Bitbucket Slack channel and hook overrides using patterns
October 19, 2023
Bitbucket Slack channel and hook overrides using patterns
In order to receive Slack notifications to different Bitbucket branches you need to create a pattern expression against source (from) or destination (to) branch.
Read more >

New blog posts

Build bridges, not barriers- Tips to improve collaboration using Google Workspace and Atlassian.
April 16, 2024
Build bridges, not barriers- Tips to improve collaboration using Google Workspace and Atlassian.
As the digital and remote workspace continues to expand, it has become crucial for teams to integrate other powerful apps such as Jira, Confluence, and Bitbucket to enhance team connectivity and collaboration.
Read more >
Feature flags solutions research
April 16, 2024
Feature flags solutions research
A short analysis of feature flag solutions.
Read more >
Bring information from GitHub into Confluence
March 6, 2024
Bring information from GitHub into Confluence
Learn how to extract your technical documentation, files, and source code from Github to Confluence by integrating these two apps together. Read more.
Read more >