How to find the issues which are not in closed status as of a date?

I am trying a query to find how many bugs that existed on a certain date were not closed on that specific date.


the query project = proj and issuetype = Bug AND created < "2014/05/08" and status was not closed BEFORE "2014/05/08"

not giving the expected result. actually it's not returning anything.

I ran following on 8th of May, 2014: project = proj and issuetype = Bug AND status != closed

and it returned 100 issues. I expect when we run a query today using the "was not" clause for the same day, I should see the same number of issues. Am I right? or am I making silly mistake?

2 answers

0 votes
Joe Pitt Community Champion Aug 27, 2014

You would need to specify the field to be compared to the BEFORE date. Out of the box I don't think there is one. I routinely capture milestone dates in custom fields in my workflows so this kind of query can be run. You may be able to structure a query that looks at the history but I wouldn't know what fields to point you to.

Perhaps this work:
created < 2014-05-08 and Status not in (Closed) AND updated <= 2014-05-08

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 ...

2,980 views 12 18
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