Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Customize the Slack notification


I'm a newbie with Bitbucket. I used the default style of Bitbucket when integrating Bitbucket to Slack. I'm getting stuck in customizing the styles of notification when the Bitbucket pushing events messages to Slack channel. How could I customize it? I found Bitbucket has the Slack-notify pipe to customize but I want more as own badge, own icon, ... 


2 answers

1 vote

Hi @Châu Nguyễn Trung ,

Thank you for your question!

We provided atlassian/slack-notify pipe where you could modify 

"pretext" and "text" sections in a payload of your slack message with PRETEXT and MESSAGE variables:
- pipe: atlassian/slack-notify:1.0.2
    WEBHOOK_URL: '<string>'
    PRETEXT: '<string>'
    MESSAGE: '<string>'
    # DEBUG: '<boolean>' # Optional.
We'll discuss flexible payload with our team and notify you.


Oleksandr Kyrdan

0 votes

Hi @Châu Nguyễn Trung ,

Now Flexible payload supported in atlassian/slack-notify:1.2.0:

  - envsubst < "payload.json.template" > "payload.json"
  - pipe: atlassian/slack-notify:1.2.0
      PAYLOAD_FILE: payload.json 

Use custom payload created with Slack Block Kit and modify payload with the envsubst program that substitutes the values of environment variables.


Oleksandr Kyrdan

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,440 views 4 7
Read article

Community Events

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

Events near you