Group messages in Slack for issues related to automation rule

Kauana Rodrigues dos Santos
Contributor
March 13, 2025

 

Hello, everyone! I'm using a rule in Jira automation that will send a message to a Slack channel if the call has been stuck in a certain status for more than 7 days. I need it to be a single message with all the cards that match this rule, i.e. a group of cases. However, when the message arrives in the channel, it duplicates the first line " Incidentes com mais de 7 dias sem post mortem" Does anyone know if it's possible to prevent the message "Incidentes com mais de 7 dias sem post mortem" from being duplicated? I tried using {{#lookupIssues}} - {{/lookupIssues}} but in addition to not working, it deletes the issue information. Here's an image of how the message is currently arriving

 

 

In short: I need the message to arrive this way but without repeating the 7-day message. In other words, the message "Incidentes com mais de 7 dias sem post mortem" and below it all the issues related to the ruleCaptura de tela 2025-03-13 113604.png

 

Does anyone know if it is possible?

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
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.
March 13, 2025

Hi @Kauana Rodrigues dos Santos 

I hypothesize your rule looks something like this:

  • trigger: scheduled with JQL to find the issues
  • action: send Slack message

That will iterate over each issue found by the JQL from the trigger.

 

One way to send one message with all the issues is using the Lookup Issues action: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Lookup-issues

  • trigger: scheduled with no JQL
  • action: lookup issues, with the JQL previously used in the trigger
  • smart values condition: to check if any issues were found
    • first value: {{lookupIssues.size}}
    • condition: greater than
    • second value: 0
  • action: send Slack Message, using the fields in the {{lookupIssues}} result for your message.

 

Kind regards,
Bill

Kauana Rodrigues dos Santos
Contributor
March 13, 2025

Thank you very much, it helped a lot and it worked.Captura de tela 2025-03-13 1530002.png

Like Bill Sheboy likes this
Bill Sheboy
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.
March 13, 2025

Awesome; I am glad to learn it is working!  Please consider marking this question as "answered" to help others with a similar need find solutions faster.  Thanks!

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