Advanced JQL Filter

Hi I am trying to create a filter so if any issues in my project sit in the resolved state for more than 3 days, they automatically transition to closed. Can someone please help me with this?



3 answers

1 accepted

Hi Kristen,

Here you go smile :


First test if all the issue in your project has been resolved with a resolution:

Paste this in Issues> Search for issues Section: 

project = XXX  and resolutiondate is not null  and resolution is null and status = resolved

Zero issues is normal.

Then we can setup the rule in the automation Plugin

In the section select trigger > JQL filter Trigger

In the cron section: paste this for example if you want close all issue in resolved status, at 7.15 am every day

0 15 7 * * ?

Then paste the JQL code:

project = XXX and resolutiondate < -3d and status =resolved

(remember to change XXX with the key of your project)

Then in the next section Add Section

Set Choose Section > Transition Section

Then set the exact close  transition (this is relative to your project's workflow). Start writing clos.. and then choose the correct one.

You can also check: Disable notification for this transition?


Then click next, save.


Hope you find it usefull,



it can be implemented using com.onresolve.jira.groovy.GroovyService

Please find an example here:

I'm trying to use the JIRA automation plugin

It might be helpful if you tell us what tool or approach you're using to implement the auto-close.

Assuming your final status is "Closed" a query something like this should give you the list you're looking for:

resolutiondate < -3d and status != Closed

I'm trying to use the JIRA automation plugin

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,134 views 6 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot