Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to send a single slack notification listing multiple issues

Andrew
Contributor
November 13, 2023

Hi Team,

I am trying to create an automation rule that can send me a single slack notification listing all jira items that have been waiting in Final Review for more than 2 days. I have got the trigger working correctly where I am using a JQL query to find all the matching items and that is working correctly. But instead of getting a single slack message with all issues from the JQL I am getting a slack message per issue from the JQL.

Below is what I am using in the slack notification part of my rule. 

*The following items have been waiting in Final Review for 2 days*

<URL for my work jira/{{issue.key}}|{{issue.key}}> - *{{issue.customfield_10370}}*

{{issue.customfield_10387}}

I looked up info on smart values and tried their simple examples such as

{{#issues}}{{key}}{{/}}

But still I receive a slack message per issue from the JQL

Any help and guidance from anyone would be awesome!

 

2 answers

1 accepted

2 votes
Answer accepted
Dag Atle Stenstad
Community Champion
November 14, 2023

Hi Andrew! Welcome to the community.

I think this rule will solve your case.

 

Jira Automate.png

Andrew
Contributor
November 15, 2023

I tried this and the listing of all the items in a message is working, however it didn't send me a single slack message. It sent me a slack message for the number of items.

So in this case my JQL query returned 4 matching items, so slaack sent me 4 messages with the same summary

Dag Atle Stenstad
Community Champion
November 16, 2023

Can you check if the checkbox under the 'Scheduled' section is unchecked?

 

2023-11-16 14_42_14-Automation - Jira og 4 sider til – Arbeid – Microsoft​ Edge.png

Like # people like this
Andrew
Contributor
November 16, 2023

You were 100% spot on! Had that enabled and now everything is working. Life changing!! Legend - thanks again @Dag Atle Stentad 

Like Dag Atle Stenstad likes this
0 votes
Andrew
Contributor
November 15, 2023

@Dag Atle Stenstad you legend!

Will give this a go today and see how it plays out. Appreciate you taking the time to look into this and help me

Suggest an answer

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

Atlassian Community Events