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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
Community Groups

Can I notify to Slack channel on deployment events in yaml-spec?


Have been fiddling with yaml-spec deployments with some late success (that yaml-structure is a hump, you know).

Got email notifications working after some trial and error.

Is it possible to trigger Slack channel notification from yaml-specs too?

If so, what is the recipient type and how do we get the slack channel name and webhook token in there?

My google-fu got me some interesting links (some old, some rudimentary):

And the obvious links to reference docs etc, but no definitive answers.

My guess is that slack notifications is not implemented for yaml-spec yet, though...

This is what I've got now (works):

- build-success
- events:
- deployment-finished
- emails:

Edit: speling

2 answers

1 accepted

2 votes
Answer accepted

Hi @matgry

It is possible to do it through Java Specs. I did not find it in our docs for YAML and the Bamboo source code didn't seem to show that option either.

I've opened a feature request to address this:

The easy way to see how to configure this through Java specs is:

  1. Install the plugin Slack Notifications for Bamboo | Atlassian Marketplace
  2. Configure your deployment environment with the slack notification you need
  3. Still in the deployment environment configuration [...] (top right)  >> View project as Java Specs
  4. Copy the configuration

This is the part of the code showing the notification you need:

.notifications(new Notification()
.type(new AnyNotificationType(new AtlassianModule("bamboo.deployments:deploymentStartedFinished")))
.recipients(new AnyNotificationRecipient(new AtlassianModule("com.atlassian.bamboo.plugins.bamboo-slack:recipient.slack"))

I hope you can use Java Specs instead.

Thanks. I'll keep an eye on the feature request, and maybe look into Java specs as well.

Like Daniel Santos likes this

You are welcome @matgry!

0 votes
Frenchie Atlassian Team Dec 22, 2020

You can do this by sending an email to a slack channel.

1. Set up an email for your slack channel:

2. Use something like

- events:
- plan-failed
- emails:

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events