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

Top 4 Ways to Integrate Jira with Azure DevOps
December 3, 2024
Top 4 Ways to Integrate Jira with Azure DevOps
Jira and Azure DevOps integrations generally fall under two categories: Development Information Integration and Work Item Integration. Read on to find out more about Jira and Azure DevOps integration possibilities.
Read more >
Can Jira and Azure DevOps Work Together?
December 3, 2024
Can Jira and Azure DevOps Work Together?
Jira and Azure DevOps (ADO) can definitely work together.
Read more >
Microsoft Ignite 2024: Insights, Innovation, and Inspiration
December 2, 2024
Microsoft Ignite 2024: Insights, Innovation, and Inspiration
In November 2024, Leo from Move Work Forward attended the Microsoft Ignite Conference in Chicago. This four-day event brought together thought leaders, developers, and technology enthusiasts to explore the latest in Microsoft tools and innovations. With multiple parallel streams, an extensive expo, and hands-on labs, it was a hub of learning and collaboration.
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