queries for data

what would be a good syntax or the correct to pull datesand tickets? for example, I want to be able to pull the open tickets in the last 7 days and need to be able to show long they been open

4 answers

1 accepted

ok, i got more details on what they need. They need to look at all the tickets in a component and how long they have been open.

I was thinking maybe something like this

project = "" AND component = "" AND resolution = unresolved AND status was open on endofweek ())

something like that work ?

No. Inside jql you put query criteria - that mean that "I want to see issues that were opened from yesterdey till today". As for seeing time in status - there is a feature request that is still open, so by default you will not see time in status in issue navigator (see https://ecosystem.atlassian.net/browse/JCHART-424)

As a possible solution - it is possible to create something like calculated custom field with this info and search / view according to it. But it requires development.

BTW please see https://answers.atlassian.com/questions/95556/how-to-get-the-time-spent-report-of-issues-in-a-particular-status- seems it is relevant to your request - it already contains the script field)

Could you clarify the request? Do you want to search issues that are open and were open > 7 days?

more like in the last 7 days or the past week. like what syntax would I use to show days?

more like in the last 7 days or the past week. like what syntax would I use to show days?

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,317 views 14 20
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