Forums

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

Is it possible to create an automation to transition tickets after X time in the same status?

Javier Peraita
Contributor
July 26, 2023

Hello!
We are preparing an automation for a project. We want all issues that have been in the "Waiting for Customer" status for more than 7 days to transition to the "Canceled" status.
For this we have created this automation scheduled every day at 10:30 but it is not transitioning the issues that are more than 7 days old.
Does anyone know if the JQL code is wrong and how to correct it?

Screenshot 2023-07-26 102345.png
Thanks!

1 answer

1 accepted

1 vote
Answer accepted
John Funk
Community Champion
July 26, 2023

Hi Javier,

Did you click on the Validate Query link to make sure that it is returning issues that you think should be transitioned?

If so and that looks correct, then is the rule running and not finding anything? Or are you getting an error? What does the Audit log say?

Javier Peraita
Contributor
July 26, 2023

When checking the Validate Query link the issues that appeared were not correct. There were issues in other Statuses like "Resolved", "Canceled", "To do", etc.

I changed the code to this one and the Validate Query link seems correct now (changes in bold). Does this make sense now?:

status = "Waiting for customer" AND status changed to "Waiting for customer" before -7d

Thank you so much @John Funk 

Like John Funk likes this
John Funk
Community Champion
July 26, 2023

Yes, that looks good. Are the issues that show up on the validate look like they ones that should be there? 

Javier Peraita
Contributor
July 26, 2023

Yes!!!

Like John Funk likes this
John Funk
Community Champion
July 26, 2023

Well, you can then go ahead and click Run the rule and see if it moves them.  :-)

Like Javier Peraita likes this

Suggest an answer

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

Atlassian Community Events