Can a JQL Subscription be tied to a Slack Channel?

Joshua Dickerson
Contributor
July 11, 2023

Can a JQL Subscription be tied to a Slack Channel? I know it will send emails to the user who created them or to a group, but wanted to know if a Slack channel integration was possible.

1 answer

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 11, 2023

Hi @Joshua Dickerson ,

With minimal change to the filter, you could have that email go into a Slack channel using the feature in Slack that lets you receive emails . That would be poorly formatted though - we do have a better option!

With Jira Automation, you can set up a rule that runs on a Scheduled trigger as often as your JQL subscription would run. I'll describe this at a high level without actually mocking this out with screenshots. If you get stuck implementing this, I'm happy to troubleshoot!

 

  1. Trigger - scheduled based on how often you want the issues to be sent in to Slack
  2. Action 1 will be a Lookup Issues action using the JQL from your subscription
  3. The second thing (condition, not an action) will be an Advanced Compare condition that will check to see if the lookup list is empty or not. See this previous Community answer for an example! If you don't include this condition, the message will send in to Slack even if there aren't any matching issues in the JQL.
  4. The last bit will be the Send to Slack action. Here's an example of the body you could use that will iterate through all the issues from the lookup list:
    These issues match the JQL subscription:
    {{#lookupIssues}}
    • <{{url}}|*{{key}}* {{summary}}>
    {{/}}

The results will be linked to Jira in Slack, here's a screenshot of how the formatting looks in Slack:
image.png

Cheers,
Daniel

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events