I wanted to set-up a simple automation rule that if a issuetype is in a certain status for 10 days without anyupdate it closes automatically.
I tried a bit. but the tickets where closed after being in that status for 1 day.
this is what i set-up:
JQL rule:
project = FUSD AND issuetype in ("Change Request", Incident, "Operational Change") AND status = "Prod - Operational Proving/Live Check" AND updated >= -10d
anyone knows what i'm doing wrong.
Your automation rule is failing because the JQL query you used, updated >= -10d, does not select issues that have remained in a state for 10 days without updates. Instead, it selects issues that have been updated in the last 10 days, which is why the rule is triggering earlier than expected.
Solution
To ensure that the rule only applies to issues that haven’t been updated in the last 10 days, modify your JQL like this:
project = FUSD
AND issuetype IN ("Change Request", Incident, "Operational Change")
AND status = "Prod - Operational Test/Live Verification"
AND updated <= -10d
🔹 Key Difference:
Automation Rule Configuration
1. Trigger:
2. Action:
Before enabling it in production run the JQL query in Jira’s advanced search to verify that it selects the correct issues.
👉 If my answer was helpful, please mark it as accepted! 😊
Hi thx for the asnwer i'll adapt the jql in this way and 'll update in 10 days :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perfect! don't forget to mark my answer as accepted if you found it helpful. 😊
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Maxime Baudts , welcome to the Atlassian Community and thanks for your post.
I have a similar rule in one of my customer instances. I think you have the arrow going the wrong way. When you click on the 'Validate query' option under that box, please can you check you are getting a number of issues retrieved that seems sensible?
You can also copy the JQL and put it into an issue filter, add the 'Updated' column and visually check if the issues you are retrieving with that query are the correct ones to close.
status = "Resolved" and updated < -72h
I hope this helps you but if you have other questions, please don't hesitate to ask.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.