JQL query
Asked by Sampath:

Team

Anybody share JQL query for below

<br />

Created: 17/Aug/24 7:00 AM

Updated: 18/Sep/24 6:34 AM

Resolved: 18/Sep/24 6:34 AM

I am looking for calculation of days taken for one ticket , Daily / monthly / Yearly any help appreciated


Answers:
author: Gizem G?k?e _OBSS_
body: Hello [@Sampath](/t5/user/viewprofilepage/user-id/3886406) ,

As far as I understand you are trying to calculate the resolution time of the tickets. For that I can suggest you a marketplace app which will give you ready-to-go reports. [Timepiece - Time in Status for Jira](https://marketplace.atlassian.com/apps/1211756/time-in-status?hosting=cloud&tab=overview&utm_source=community&utm_medium=answer) ,the oldest and the most comprehensive "Time in Status" app in Atlassian Marketplace, which is developed by my team at OBSS, has a report type that will meet your need. Our app is available for both Jira Cloud, and Data Center.

Timepiece mainly allows you to see how much time each issue spent on each **status.**

**Status Duration** report (please see the screenshot above) which shows how much time each issue spent on each status. You can combine the time for multiple statuses to get metrics like **Issue Age, Cycle Time, Lead Time, Resolution Time** etc.

![Resolution Time.png](https://community.atlassian.com/t5/image/serverpage/image-id/348975i177CB6EE9198A506/image-size/large?v=v2&px=999 "Resolution Time.png")

The app calculates its reports using already existing Jira issue histories so when you install the app, you don't need to add anything to your issue workflows and you can get reports on your past issues as well.

Timepiece reports can be accessed through **its own reporting page, dashboard gadgets, and issue view screen tabs**.

If you wish, you can also [schedule a live demo.](https://calendar.app.google/faQYgsEekRdFxnPj7) We will provide a comprehensive overview of the application and address any inquiries you may have.

Hope it helps,

Gizem


author: Rahul_RVS_Support
body: Hi [@Sampath](/t5/user/viewprofilepage/user-id/3886406)

Looks like you are trying to find out the completion/resolution times for your Jira Issues. You can use Jira Rest API's to pull this data from issue changelogs. Or You can create your own custom fields and apply [Jira automation](https://www.atlassian.com/software/jira/features/automation) to populate those.

Alternatively if you are open to try a mktplace app, pls do take a look at

[Time in Status Reports](https://marketplace.atlassian.com/apps/1226187/time-in-status-reports?hosting=cloud&tab=overview)

With this app you generate resolution times for your Jira Issues. The app allows you to group your statuses and it calculates and sums up the total time the issue takes while moving through the workflow right from the initial status to the completed one. The screen below shows the cycle time report similar to one in your requirement.  
Also the app has many reports to meet a variety of time in status use cases.

[More details here.](https://community.atlassian.com/t5/App-Central-articles/Reports-to-extract-Time-in-Status-data/ba-p/2348133)

Disclaimer : I work for the vendor who built this app

![TIS - Cycle Time report.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/349048iE73BE719F5BCCBD2/image-size/large?v=v2&px=999 "TIS - Cycle Time report.PNG")


author: Bill Sheboy
body: Hi [@Sampath](/t5/user/viewprofilepage/user-id/3886406)

Jira Query Language (JQL) helps find / search for issues. It cannot perform calculations for things like duration of time between date fields. And it is not a SQL. Please look here to learn more: <https://support.atlassian.com/jira-software-cloud/docs/use-advanced-search-with-jira-query-language-jql/>

For reporting on things such as resolution time Jira has some basic dashboarding and reports, but it has limited ability to group information for different time periods.

<https://support.atlassian.com/jira-software-cloud/docs/work-with-dashboards-in-jira-cloud/>  
<https://support.atlassian.com/jira-software-cloud/docs/view-and-understand-the-control-chart/>

For more advanced reporting needs, please investigate the Atlassian Marketplace to find additional reporting options: <https://marketplace.atlassian.com/>

Kind regards,  
Bill


Tags: cloud

jira-cloud