Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

Automation Is Posting Duplicate Slack Messages

jteamsupport February 27, 2023

We've created basic automation that grabs a selection of tickets in a specific status, and posts that list to a slack channel each week. No matter how the slack message is configured, even using the out of the box templates from Atlassian, it's duplicating the slack message. 

Automation Configuration: 


1. When:Scheduled(Uses JQL)

2. Then: Send Slack Message
Here are the tickets that will be released this Tuesday!
{{#lookupIssues}}
* {{key}} {{summary}}
{{/}}



This results in two identical messages being posted in slack. 

"Here are the tickets being released this Tuesday
*issue one 
*issue two 
*issue three"

"Here are the tickets being released this Tuesday
*issue one 
*issue two 
*issue three" 


4 answers

0 votes
Derek Owens February 26, 2025

Limiting the JQL to the lookup action and excluding it from the scheduled trigger also resolved the multiple slack message issue for me. Thank you @jteamsupport

0 votes
Elliot Jones
Contributor
March 11, 2024

I actually found the solution. 

 

Make sure that the JQL is not listed in the trigger section, as well as the lookup action. This if I am reading correctly, means that using CRON is no longer an option. I have set my message just to go out daily instead of mon-friday, and it seems to solve the problem.

That said I feel it needs a real Atlassian based fix.

0 votes
Elliot Jones
Contributor
March 11, 2024

If anyone can help with this I am also suffering from this problem.

0 votes
Clark Everson
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 27, 2023

Hi Jonathan,

Welcome to the community!

Is the automation rule showing anything in the log? Is the rule triggering more than once? If so I would check the JQL

Best,
Clark

jteamsupport February 27, 2023

Thanks for the feedback! The log just shows that it was successful. It ran once. Posted the slack message. 

Action Details: 
Send Slack Message: Successfully sent slack message. 

Like Derek Owens likes this
jteamsupport February 27, 2023

Actually, I found a work around. Not sure what could cause this.Use the same JQL query. Instead of using it on the "When Scheduled" step, create a new step for "Lookup" 


1. When:Scheduled(Just sets the time)

2. Then: Lookup Issues(Use the JQL here)

3. Then: Send Slack Message
Here are the tickets that will be released this Tuesday!
{{#lookupIssues}}
* {{key}} {{summary}}
{{/}}


That works fine. 

Like Derek Owens likes this
Mithila N Bhat
Contributor
July 31, 2023

Hi I tried this and I still get duplicate messages. Any idea what might have gone wrong here?

Nathan Mackenzie January 4, 2024

Hey All, I had the same issue and I believe it's because it applies the slack message for on every issue the JQL search finds to apply changes on. So 4 issues found in the JQL = 4x slack messages.

I have fixed it by not having the JQL search in the schedule module but rather have a branch module down the line which includes the JQL search to pull in issues to apply the changes to. I have the lookup module ahead of this and I now only get the single slack message.

Basically you want the lookup issues module ahead of any JQL filter 👌🏻

This screenshot will help explain:

Screenshot 2024-01-04 at 11.16.47.png

Elliot Jones
Contributor
March 11, 2024

Hello there. What about the case where no action is to be taken? I simply want the list and I am still getting duplicated Slack messages.

Suggest an answer

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

Atlassian Community Events