How to set up Bitbucket/Slack integration using the API?

Matthieu Buot de l'Epine
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!
May 27, 2022

Hi,

We're trying to set up our internal Slack with our Bitbucket repos in order to receive notifications when a branch is merged for example. This is described in this document under "Subscribe Slack channels to Bitbucket repositories": https://support.atlassian.com/bitbucket-cloud/docs/integrate-bitbucket-cloud-with-slack/ .

Since we use quite a lot of different repos we would like to automate the integration through a script, but couldn't find any documentation about how to do that using the API. Is that even possible? And if so what are the steps to follow please?

Thanks in advance

1 answer

1 accepted

1 vote
Answer accepted
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 30, 2022

Hi @Matthieu Buot de l'Epine

Welcome to the community.

Unfortunately, it's not possible to set up Slack in multiple repositories via API.
For now, you'll have to manually set up the Slack integration to subscribe to a channel for each repository.
We do have an existing feature request for it that can be located through this link. - https://jira.atlassian.com/browse/BCLOUD-16227
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud.
Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy here.

Do let me know if you have further questions that I can help with.

Regards,
Mark C

Matthieu Buot de l'Epine
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!
May 31, 2022

Hi @Mark C 

Thanks for the detailed answer, this is very helpful!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events