Close tickets 2 workdays after resolve

Wolfgang_Roeckelein
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 20, 2024

Hi all, 

 

I try to build an automation which closes all my tickets 2 days after resolving them. Unfortunately I'm not able to exclude the weekend during these 2 days. 

My last try was with this JQL - which didnt work: status =resolved AND updated >-3d OR (updated > -5d AND updated > startofWeek(-3d) AND updated < startofweek()). 

 

Any idea how to write the correct JQL for my needs?

 

Happy about any type of help!

Thanks

Wolfgang

1 answer

0 votes
Hariharan Iyer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 20, 2024

Hi @Wolfgang_Roeckelein ,

 

You can use a condition like

updated < {{now.minusBusinessDays(2).jqlDate}}

Please see the screenshot below where I've used similar filtering on the created date

Screenshot 2024-02-20 at 8.12.50 PM.png

 

Hope that helps!

Suggest an answer

Log in or Sign up to answer