SQl query for all issues in status for given date

Any idea how to query list of issues in given status at given date?(e.g. all isuess in status "open" on given date or between two dates)
I have Jira 4.0.2 and therefore no possibility to use "was" JQL functionality. I prefer Oracle DB query.

Thanks a lot.

2 answers

This widget could not be displayed.
Daryl Chuah Atlassian Team Feb 18, 2013

Hi Martin

Would you mind to try this JQL : status = Open AND created >= 2013-02-17 AND created <= 2013-02-20

Hope it helps

Cheers :)

I believe this will return all issues "currently in status open" and created in given date. I would like to have list os issues which was in status open in past (given date), no matter in which status they are corrently. So it actually did not help.

This widget could not be displayed.

This one is pretty close. You just have to modify it to return the actual issues instead of the count.

https://confluence.atlassian.com/display/JIRACOM/Example+SQL+queries+for+JIRA#ExampleSQLqueriesforJIRA-FindStatuscountsforaProjectonagivendate

Yes I know this one, but unfortunately I didn't have chance to check if it is retunring what I need. It is written for MySQL and it is little bit tricky to rewrite it to Oracle. I made it somehow, but still cannot get to wanted result. :/ I'll keep trying.

That site with sql query examples is not bad, but if the queries are commented more detailly it would be much more helpful. Sometimes I'm not sure what to modify as I have no idea what is actually stored in mentioned tables.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

139 views 2 0
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