How do I integrate with Slack using Automation for JIRA?

andreas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 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

1 vote
Answer accepted
andreas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 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.

1 vote
Ryan Eames (Admin) July 5, 2017

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.

0 votes
Philippe Labat January 25, 2017

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

andreas
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 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

Ryan Eames (Admin) July 5, 2017

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.

Scott Harwood
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 7, 2017

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

Alessandro Tondo February 20, 2019

@Scott Harwood do you mind to implement the whole "attachements" behavior? (cf. https://api.slack.com/docs/messages/builder)

By the way this is not really a problem since I'm not able to set it from the dedicated Slack action, but I can from the "Send webhook" node.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events