Forums

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

Automation

Hayk Tadevosyan
Contributor
July 7, 2023

I have created automation when the task is transitioned in waiting for approval and there is no update within 48 hours, so the task reporter should get comment.
The automation works, but there are cases when the task is in the waiting for approval status, the reporter receives a comment for 2 hours. or 1 day Please help me understand why it works like that.

1 answer

0 votes
Sayed Bares [ServiceRocket]
Community Champion
July 7, 2023

@Hayk Tadevosyan welcome to the community!

Can you share a screenshot from your automation? and automation audit logs?

Hayk Tadevosyan
Contributor
July 7, 2023

Hello this is automation screenshots 

Thank you in advancScreenshot_3.pngScreenshot_4.pngScreenshot_5.pngScreenshot_6.png

Like # people like this
Sayed Bares [ServiceRocket]
Community Champion
July 8, 2023

@Hayk Tadevosyan it is all because of your JQL. You are looking for issue that is in "Waiting for Approval" status which is correct. However, you are not checking if the status change for "Waiting for Approval" happened before 48 hours ago, so your automation returns true even if you changed to "Waiting for Approval" just 1 minute ago.

The correct JQL should be something like this:

status = "Waiting for Approval" and status changed to "Waiting for Approval" before "-48h"

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