JQL for Updated Date > Closed Date

Users want to filter issues that have a 'greater' updated date to the closed/resolved date.

1 answer

0 votes
Thomas Schlegel Community Champion Jan 19, 2018

Hi Robert,

with plain Jira, this is not possible. If you have the Scriptrunner app, you can do the following:

issueFunction in dateCompare("", "updated > resolutionDate")

Hi Thomas,

I need the 'Updated' date as follows....

updated.jpg

Thomas Schlegel Community Champion Jan 19, 2018

you asked for the filter - with that filter you get a table of issues. Which columns you want to see is your decision then.

It seems also to be pulling off issues that have the same 'Updated' as 'Resolved' date?

Thomas Schlegel Community Champion Jan 19, 2018

I think the datecompare function also compares the time portion of the datetime. Is this the cause in your example?

Some have the exact same date and time to the minute, if those issue werent in the list it would be perfect.

Thomas Schlegel Community Champion Jan 19, 2018

@Nic Brough [Adaptavist] - is Scriptrunner comparing seconds also?

I believe it compares the whole timestamp it gets from the database, so yes it would, although I didn't think Jira bothers to save seconds.

Im trying to run this when we have 1.3 million issues and this is timing out i think, so im combining it with JQL with no luck.

Do you have any advice on helping the time out problem? Thanks

Thomas Schlegel Community Champion Jan 22, 2018

How did you combine it with JQL? Maybe it makes a difference if you add the additional JQL before or after the datacompare.

created >= -10d AND issueFunction in dateCompare("", "updated > resolutionDate")

I just tried the created after it with no luck as well. I thought it being first would help :(

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,175 views 13 19
Join discussion

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