Support slack notifications for Bamboo yaml specs
Asked by Marcos Gabilondo:

Hi team,

Do you know when are you going to support slack notifications definition in Bamboo yaml specs for plans and deployments??

Thanks in advance,

Have a nice day.

Marcos Gabilondo.


Answers:
author: Marcos Gabilondo
body: HI [@Phill Pafford](/t5/user/viewprofilepage/user-id/704705) [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410) and [@Alexey Chystoprudov](/t5/user/viewprofilepage/user-id/781646)

Thanks for your help, I've really appreciated it.

I was thinking Bamboo does not support slack notifications yet because when I'm exporting an existing Bamboo plan to yaml specs, the plan/deployment definition said:

![bamboo_specs.png](https://community.atlassian.com/t5/image/serverpage/image-id/187939iCEFBD6C3CB309CF1/image-size/large?v=v2&px=999 "bamboo_specs.png")

I will apply one of your solutions to my plan definitions.

Thanks in advance,

Marcos Gabilondo

comments: author: Marcos Gabilondo
body: As [@Eduardo Alvarenga](/t5/user/viewprofilepage/user-id/4365410) said in his message about convert the Java format in Yaml.

I didn't export my plan definitions to JavaSpecs to see that Bamboo supports this kind of notifications.

![bamboo_specs2.png](https://community.atlassian.com/t5/image/serverpage/image-id/187940i0687738B2CBC5134/image-size/large?v=v2&px=999 "bamboo_specs2.png")

Thanks.


author: Phill Pafford
body: One option I've looked at is using the email to slack channel functionality <https://slack.com/intl/en-gb/help/articles/206819278-Send-emails-to-Slack>

Basically each channel in slack can has an email associated to it, then you just setup spec to use the email option for notifications.

While I have not officially tried this in spec, I do use the email option to send a slack message to a channel

comments: author: Marcos Gabilondo
body: It's a good solution but it does not fit with our requirements because the email notification to slack is hidden until you expanded the message.

So, you can not see if the plan has been finished successfully without click on the slack message.


author: Alexey Chystoprudov
body: Hi [@Marcos Gabilondo](/t5/user/viewprofilepage/user-id/4176021) , please contact Slack integration plugin vendor [https://marketplace.atlassian.com/apps/1213289/slack-notifications-for-bamboo?hosting=server\&tab=support](https://marketplace.atlassian.com/apps/1213289/slack-notifications-for-bamboo?hosting=server&tab=support)


author: Eduardo Alvarenga
body: Hey [@Marcos Gabilondo](/t5/user/viewprofilepage/user-id/4176021)

Have a look at this KB article. It will walk you through the steps to "convert" the Slack instructions from Java format into YAML.

* [How to generate YAML Specs for any-task configurations](https://confluence.atlassian.com/bamkb/how-to-generate-yaml-specs-for-any-task-configurations-1052641946.html)

Regards,

Eduardo Alvarenga  
Atlassian Support APAC

comments: author: Phill Pafford
body: nice find!


author: Marcos Gabilondo
body: I will try this solution to see if the message has the same format as the manually configured one.


author: Dennis Hoer
body: [@Marcos Gabilondo](/t5/user/viewprofilepage/user-id/4176021) where you able to get this to work?