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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

691 views 6 13
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