Skip to main content
Skip table of contents

How to enable notifications from Bitbucket in Microsoft Teams?

Post Webhooks for Bitbucket provides support for Microsoft Teams notifications by allowing you to send real-time notifications to your Microsoft Teams channels whenever certain events occur in your Bitbucket repositories.

You can configure a webhook in Bitbucket to send a payload to a Microsoft Teams Webhook URL whenever a specific event, such as a code push or a pull request merge, takes place.

Microsoft Teams Webhook URL

To generate an Microsoft Teams Workflows app URL in Microsoft Teams, follow this guide:

How to create webhook URL with Workflows app?

Post Webhooks for Bitbucket supports the old and new formats of Microsoft Teams Incoming Webhook URLs. Additionally, it supports Microsoft Teams Workflows URLs.

Workflows app URLs support is available since 7.13.36

Configuration

Once you have the Webhook URL, you can proceed with configuring Microsoft Teams notifications. Configuration of Microsoft Teams notifications is available on all configuration levels:

Global Configurations for Bitbucket admins

Project Level Configurations

Repository Level Configurations

  1. Find our application Post Webhooks on the level that suits your needs best: Global, Project, or Repository.

  2. From the Configurations tab, click image-20240712-102622.png

  3. Input generated webhook in the Incoming Webhook URL field and specify all the necessary parameters (see table below).

  4. Click on the Save button.

Below you can find a short definition of the parameters you have to specify:

Parameter

Definition

Incoming Webhook URL

created Microsoft Teams Webhook URL.

Repository (Push) events

allows you to specify the types of events that should trigger the pipeline.

Pull request events

allows you to specify the types of events that should trigger the pipeline.

Notification name

the name of the configuration

Our advice is to name something meaningful to you and your team so that it can be understood later easier

Status

Active checkbox should be enabled if this configuration is going to be used.

The rest of the parameters are optional to provide flexibility and customization options.

Updated:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.