Integrate an Automation rule with Slack
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
If you want to send a message to a Slack channel, you first need to integrate Slack and Automation for Jira Server. This provides a webhook URL that Automation for Jira can use to send messages to your private Slack channels. This integration can be revoked at any time. Check out the awesome blog post on 2022-06-21_07-52-15_How to use Slack Messages with Automation for Jira.
Solution
Steps to follow
Navigate to incoming webhooks in your Slack account or from the
Send Slack Message action in Automation for Jira, select the link to configure an incoming webhook in your Slack account.
Choose a channel to post messages to (or create a new one) and select Add Incoming WebHooks Integration (you can change this channel at any time from within Slack or from the Send Slack Message action)
From Integration Settings in Slack, copy the webhook URL
The next steps will depend on the Automation For Jira version that you are using
For Automation For Jira on any version below 9.0.0
Paste the webhook URL in the Send Slack Message action:
For Automation For Jira on any version from 9.0.0
Create a new Secret Key by following the instructions from this documentation and using the Webhook URL obtained from Slack
Go to the Send Slack Message action in the Automation rule
Click on the Webhook URL dropdown menu and select the secret key created earlier:
Messages are sent to the default channel specified in your webhook, but you can override this by specifying another channel using the #channelname
, or send it to a specific user with @slackmemberID
.
Member IDs can be found in a user's profile inside Slack:
Was this helpful?