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

How do I integrate with Slack using Automation for JIRA?

Andreas Knecht Community Leader 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

1 vote
Answer accepted
Andreas Knecht Community Leader 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.

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.

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 Leader 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

@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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Apr 03, 2019 in Marketplace Apps

How to estimate projects more accurately?

Gaining insight into your team’s effectiveness and choosing the right estimation technique.   Estimating projects is hard. It is because people have the tendency to underestimate the time thin...

296 views 2 9
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