How to automatically send an announcement after editing the source code?

Dominik Otocan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 26, 2025

Hello,

 

to clarify, announcements are currently manually written and sent on a specific date.
What me and my team want to achieve is that whenever someone edits the source code on Bitbucket, an announcement gets sent with some data, for an example the commit messages.

Is this possible to achieve?

1 answer

1 vote
Tyler T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 26, 2025

Hi @Dominik Otocan , welcome to the Community!

You can use the GraphQL API to send announcements:

https://developer.atlassian.com/cloud/compass/graphql/#mutations_createAnnouncement

In this case, you could listen for events from Bitbucket Cloud using webhooks, and then transform data from the webhook into an annoucement.

https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/

Let us know if that helps!

- Tyler

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events