TODO: receive only specific notification(on commit only) from Bitbucket at specific Slack channel
What I did:
No matter what triggers I tried to use (push only) or choose from list - nothing is happening when I make a commit
But, if I simply use Slack webhook together with curl -X POST -H ..... - I successfully get my messages in desired Slack channel.
What should I to make this work?
Hello Kliment and welcome to the Community!
Connecting Bitbucket to slack should not require a webhook, the application should prompt for the Slack channel and then configure the application. You chat settings within Bitbucket should look as follows:
The older webhook method should be removed when configuring the new method:
If your repository uses the prior Slack integration
If your repository is already set up to trigger notifications for Slack, we recommend that you deconfigure the integration to avoid duplicate notifications. You can stop these notifications from either Bitbucket or Slack.
- From Bitbucket, remove the repository's Slack webhooks:
- From your repository's Settings, click Webhooks.
Click Delete for the webhooks configured for Slack.
- From Slack, remove the Bitbucket app:
- From the Slack App Directory, click Manage.
Find the Bitbucket app (with the old logo) and remove the app.
Source document: Bitbucket Cloud for Slack
Using the new application method should allow you to integrate Bitbucket with Slack without the need for webhooks.
If you’re still having issues with the integration, please let us know.
Thanks for your help and I'm glad to be a part of the community!
Your advice was helpful, but I need to specify some things.
I've got genuine Bitbucket and Jira bots running at my Slack workspace. They doing their job fine, however I do receive duplicate notifications from the bots themselves and to #general channel as well.
You suggest to remove the Bitbucket app. Does it mean that Atlassian's Bitbucket app doesn't need anymore and I'll be able to receive notifications just by setting up Chat notifications in my repositories' Settings?
And does the same method can be applied to Jira bot and notifications too?
Any Bitbucket webhook connections which are in place between Slack and Bitbucket should be removed and replaced with the new Bitbucket App. With this said, if you’re getting duplicate messages from Bitbucket to Slack via the app then we may have another issue present.
Can you please clarify if the duplicates are from a webhook or the Bitbucket app?
Hi everyone, We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events