Back
All posts

How to get Microsoft Teams notifications from Atlassian Bitbucket Cloud

March 6, 2024
<a href="https://www.freepik.com/free-vector/business-team-brainstorm-idea-lightbulb-from-jigsaw-working-team-collaboration-enterprise-cooperation-colleagues-mutual-assistance-concept-pinkish-coral-bluevector-isolated-illustration_11667116.htm#query=collaboration&position=2&from_view=keyword&track=sph&uuid=21ea3c1d-7461-49c7-9157-5822c4372896">Image by vectorjuice</a> on Freepik

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

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 >

Articles you might like

New blog posts

Microsoft Teams Deprecating Connectors: What It Means for Your Webhooks
July 24, 2024
Microsoft Teams Deprecating Connectors: What It Means for Your Webhooks
Microsoft Teams Deprecating Connectors: What It Means for Your Webhooks
Read more >
Partner Spotlight: How Ease Solutions is Transforming Digital Landscapes
July 19, 2024
Partner Spotlight: How Ease Solutions is Transforming Digital Landscapes
Partner Spotlight: How Ease Solutions is Transforming Digital Landscapes
Read more >
Jira Best Practices for Admins and Teams: 4 Tips to Improve How You Use Jira
July 15, 2024
Jira Best Practices for Admins and Teams: 4 Tips to Improve How You Use Jira
To make the most of Jira's capabilities it's essential to follow best practices. Here are 4 tips to help you improve your Jira workflows and boost productivity.
Read more >
Get productivity tips delivered straight to your inbox
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Atlassian Logo
Platinum Marketplace Partner
AICPA Logo
SOC 2 Type II Certified
Gitlab Logo
GitLab Official partner
EU GDPR Logo
EU GDPR Compliant
Google Logo
Google Partner
Microsoft Logo
Microsoft Partner