Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,126
Community Members
 
Community Events
184
Community Groups

Bitbucket Server to Slack Notifications not working

Hello,

I'm trying to set up a standard webhook in my repo from Bitbucket (server) to post notifications to a Slack channel. 

I have tested curl to the Slack channel and confirmed it works correctly and therefore is configured on the Slack side correctly.   (I tried from the Slack side both via custom integration and via Slack apps)

However, when I try to test the webhook, or make a repo change that should trigger the webhook, the webhook fails with a 400 response code and either the message "no text" or "missing_text_or_fallback_or_attachments".   

Investigating further, looks like communication to Slack is working but the payload from Bitbucket is not.   

Has anyone run into this problem and found a solution?  

Please note, I cannot use the Slack Integration add-on because my bitbucket server is behind a firewall and NOT accessible from the internet.   Though, I'm not sure if it's possible to still use the slack integration minus the Slack to Bitbucket communication. If anyone has tested that, let me know as well.  

For what it is worth, I followed the instruction here to set up the custom Slack app and use a webhook to it from Bitbucket: 

https://confluence.atlassian.com/slack/use-slack-and-bitbucket-server-together-974387205.html 

This document states: "you are still able to setup a limited connection with Slack by creating a custom Slack app that will give you notifications from Bitbucket to Slack. See how to create an app below in this page."

Thanks for any input. 

 

1 answer

1 accepted

0 votes
Answer accepted
Mykhailo Vlasov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 25, 2022

Hello @p2paul !

I am member of the team that supports official Atlassian integration - Bitbucket Server for Slack. I have just tested the latest version of the plugin (4.0.4) locally on my Bitbucket Server that isn't accessible from the internet and it successfully sends notifications to Slack in limited mode. I am not aware about configuration of your firewall, but if your desktop or web Slack client works fine, there are big chances for Bitbucket plugin to do the same.

The limited mode was specifically designed for such use case, when Bitbucket Server doesn't have a public URL, that may be used by Slack. Only outbound requests to Slack API and authentication pages need to be allowed.

Thanks Mykhailo!

We went ahead with the limited mode and it works exactly as expected. Appreciate the quick response.

Like Mykhailo Vlasov likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events