How do I integrate with Slack using Automation for JIRA?

Andreas Knecht Community Champion Sep 19, 2016

I want to send a message to my Slack channel when an issue is created. How do I set this up with Automation for JIRA?

3 answers

1 accepted

0 vote
Andreas Knecht Community Champion Sep 19, 2016

One of the available rule components is the "Send Slack message" action:

Project automation - Code Barrel JIRA 2016-09-20 11-49-58.png

For this to work you first have to setup an incoming web-hook in your slack account. You can do this by visiting:
https://my.slack.com/services/new/incoming-webhook/

This will provide you with a URL of the form:
https://hooks.slack.com/services/SSSHHSECRETTOKEN

Back in JIRA you can paste this URL and then add your message. The message can also include links using Slacks defined format for this.  When you define the webhook, you also set a default channel, but if you want to override this you can do so with the optional "Channel or user" field.

Is there a way to change the Slack bot Name and Icon? The addon seems to override what i set on Slack.

Andreas Knecht Community Champion Jan 25, 2017

Hi Philippe,

Yes that's not possible currently - sorry.  I've raised https://codebarrel.atlassian.net/browse/AUT-121 to track this for now. Hopefully we'll be able to implement this soon.

Cheers,
  Andreas

I second this requset to be able to have our Slack settings for the webhook be recognized.  I am using this in a situation that has unique icons and names for a couple webhooks that each represent different results/messages, and right now they all look the same, just the message is slightly different, which makes it difficult to parse in the channel.

We have released a setting (server & cloud) that allows the use of the bot name as configured in slack. 

To use your customised bot name & icon, uncheck this option.

uncheck.png

Similarly, but not directly related, it would be great to be able to create richly-formatted messages so they stand out when they appear in the channel, much like an empty attachment fallback message.  Right now, it is just like a message from a user named Automation.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

361 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you