Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Creating a scheduled notification from Jira to Slack App

 

This article explains how to create a Slack App to integrate with Jira that will enable you to post messages on your Slack Workspace. After a Slack App is enabled, we use Automation for Jira to publish messages from Jira to Slack.

 

** The method explained here replaces the legacy custom integration using Incoming Webhooks **

 

Create a Slack app and configure Incoming Webhooks

 

  1. Open and authenticate to your Slack Workspace in your browser

  2. Navigate to Your Apps Slack page and select Create an App
    Define a name, choose a workspace to associate your app with, and then click Create App.
    1.png

  3. Enable Incoming Webhooks

    After creating, navigate to the settings page for your new app (if you are using an existing app, just load its settings via your app's management dashboard) and select the Incoming Webhooks feature, and click the Activate Incoming Webhooks toggle to switch it on.

    2.png

  4. Create an Incoming Webhook

    Now that Incoming Webhooks are enabled, the settings page should refresh and some extra options will appear. One of those options will be a really helpful button marked Add New Webhook to Workspace, and you should click it to see the following screen:

    3.png

    Select a channel that the app will post to, and then click to Authorize your app.

  5. Reserve the endpoint of your webhook

    You'll be sent back to your app settings, and you should now see a new entry under the Webhook URLs for Your Workspace section, with a Webhook URL that'll look something like this:

https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

 

Create an automation rule in Jira to trigger the Incoming Webhooks on your Slack app

  1. Logged as a Jira Administrator navigate to https://yoursite.atlassian.net/jira/settings/automation#/ and select Create Rule

  2. Define the rule Trigger
    Define the rule as scheduled and input the frequency (Ex. weekly ). Also, check the options Run a JQL search and execute actions for each issue in the query and Only include issues that have changed since the last time this rule was executed. Finally, input the JQL with the criteria to select the issues and click save.
    4.png

    project in ("Project 1", "Project 2", "Project 3") and status = Deployed and updated >= startOfDay(-7)



  3. Finally, Add a New Action and define it as Send Slack message
    Inform the Webhook URL configured in your Slack App, the Slack Channel, and inform the message you would like to publish. Keep the Sender as Automation user and save

    5.png

  4. When your rule is executed one message will be posted on the selected Slack Channel with a list of issues that matched the criteria of the JQL

     

6.png

2 comments

Comment

Log in or Sign up to comment
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 14, 2022

Great article @Alex! Looks like some of your screenshots are missing/in the wrong place.  

Like Alex likes this
Alex
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 14, 2022

Hey, @Mikael Sandberg thanks for commenting and pointing that out! 

Like Mikael Sandberg likes this
TAGS
AUG Leaders

Atlassian Community Events