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.
×Hello everyone,
I know that this question is asked a lot of times and I checked the answers but there is one part that I couldn't understand. We are using Jira Service Desk Cloud and we already have "Automation for Jira" plugin.
What we want to do changing the status of an issue when it stays in resolved for 3 days.
I tried to write an automation rule but somehow it doesn't work. Below you can find my non-working rule:
When: Issue transitioned to "Resolved"
If: project = ADMIN and updated <= -3d
Then: Transition the issue to closed.
I think my trigger is not correct since the rule works when the issue is transitioned to Resolved but in that case the updated time is = 0. I am not sure how I should create the rule.
Thanks a lot in advance.
Hello,
I guess, you JQL query must be like this:
status = Resolved and status changed to Resolved before -3d
Hello Alexey,
Thank you very much for your answer. I've tried your solution but somehow it is not working. Actually when I validate the query it finds the correct issues but somehow it doesn't change the status into "Closed". You can see my rule below.
Best Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It will not work like this. You need to schedule this rule (use the scheduled trigger) because when your rule works the issue has been just moved to the Resolved state (it is less than 3 days)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Alexey,
It works!! Thank you very much for your response :)
Since you showed me using scheduler as trigger, it opened me new horizons!
Thanks again,
Have a great day.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you clarify how you're using the scheduled trigger for this?
i.e. are you having this just run once a day on all matching issues that have been in the state for 3 days or is it something different?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Exactly! I am using scheduled trigger and running it every week day at 19:00 with a Cron expression: 0 0 19 ? * MON,TUE,WED,THU,FRI *
There is a statement (Only include issues that have changed since the last time this rule executed) right under the section where you write your JQL condition and we un-checked it as well. Before some of our issues were not transitioning to closed. Now everything works perfectly :)
Regards
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.