Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How can get the duration in days between a ticket got created and closed?

Hi All,

I would want to calculate the aging of a ticket in JIRA. Is their any way to do that. Below is the example which I want to calculate.

Lets Take Creation Date as 1-Jan-2022 and Ticket got closed on 5-Jan-2022, then my ask is to get the difference in das between these 2 dates. Also in case ticket is not closed, then I want difference between the date of creation and current date



Kamal Rajpal

6 answers

1 accepted

1 vote
Answer accepted

Hi @Kamal Rajpal

welcome to the community!

If you plan to stick with "native" Jira, I can't really think of anything other than Jira Automation to calculate these values and store them into Custom Fields. There may also be reports and/or dashboard gadgets available; e.g. the Control Chart will include some of the information you're looking for (though perhaps not in the requested format).

Alternatively, if you're open to solutions from the Atlassian Marketplace, these two values are available out of the box in JXL for Jira.

JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting and filtering by all your issue fields, plus a number of "special fields" that aren't natively available. Two of these special fields are "time since created" and "time between created and resolved". This is how this looks in action:


It's worth noting that JXL can do much more than that: From inline-issue creation, to advanced features such as support for issue hierarchies, grouping, sum-ups, and conditional formatting. You can also export your data to Excel or CSV with one click, or trigger various Jira operations. Disclaimer: I work on JXL :)

Hope this helps,



Hello @Kamal Rajpal 

Additionally to recommendations above, you can try Time in Status for Jira Cloud.

It generates 7 types of status time reports including the Time in Status one, which shows how long the issue has been staying in each status.

tis report.png

The Status Entrance Date report  helps easily track when the issues has entered each of status (the date is displayed on the grid).


Also, in the "Total" column in the Time in Status report, you can monitor Issue Age.

This add-on is developed by my SaaSJet team and is free for teams up to 10 users.

I hope you find it helpfu.


0 votes
Bloompeak Support Marketplace Partner Sep 18, 2022

Hi @Kamal Rajpal

Welcome to Atlassian Community!

As an alternative, you can try Status Time Reports app developed by our team. It mainly provides reports and gadgets based on how much time passed in each status.

Here is the online demo link, you can see it in action and try without installing the app.

  • This app has a dynamic status grouping feature so that you can generate various valuable reports as time in status, time in assignee, status entry dates and status counts, cycle time and lead time, average/sum reports by any field(e.g. average in progress time by project, average cycle time by issue creation month).
  • You can search issues by Project, Issue Type, Status, Assignee, Issue Creation/Resolution Date(and any other Date field) and JQL Query.
  • Status durations are calculated according to the working calendar you define. Once you enter your working calendar into the app, it takes your working schedule into account too. That is, "In Progress" time of an issue opened on Friday at 5 PM and closed on Monday at 9 AM, will be a few hours rather than 3 days.
  • You can set different duration formats.
  • You can export reports in CSV file format and open them in MS Excel.
  • You can also add this app as a gadget to your Jira dashboards and reach “Status Time” from Issue Detail page.
  • You can enable/disable access to Status Time reports&gadgets and Issue Detail page per project, users, groups or project role.

If you are looking for a free solution, you can try the limited version Status Time Free.

Note: If you are interested in cycle and lead time, you can have a look at the article below.

Cycle Time and Lead Time in Jira: Productivity Measurement with Two Critical Parameters

Hope it helps.

0 votes
Rahul_RVS_Support Marketplace Partner Sep 09, 2022

Hi @Kamal Rajpal 

Welcome to the community !!

If you are fine with a mktplace app, you can try out our add-on to get this data.

You can groups your statuses to get the total resolution/cycle time.

Time in Status Reports 

The main features are as below

  • Multiple Time in Status Reports. Excel Export available for all status reports.
    • Time in Status
    • Time with Assignee
    • Time in Status with Assignee
    • Time with Assignee per Status
    • Status/Assignee Count
    • Multiple Transition Reports
    • Avg Time in status reports
    • Status Transition Dates Report
    • Time in Status Per Time Grain
    • Time with Assignee Per Time Grain
  • Status grouping
  • Save your reports
  • CSV Export
  • Multiple chart types
  • Dashboard Gadget

TIS - Cycle Time report.PNG

0 votes

Hello @Kamal Rajpal ,

If you are OK with using a marketplace app for this, our team at OBSS built Time in Status for this exact need. It is available for Jira Server, Cloud, and Data Center.  

Time in Status mainly allows you to see how much time each issue spent on each status and on each assignee

tisCloud_StatusDuration_LeadTime_with Estimates.png  tisCloud_AssigneeDuration.png     

The app has Consolidated Columns feature. This feature allows you to combine the duration for multiple statuses into a single column and exclude unwanted ones. It is the most flexible way to get any measurement you might want. Measurements like Issue Age, Cycle Time, Lead Time, Resolution Time etc.

For all numeric report types, you can calculate averages and sums of those durations grouped by the issue fields you select. For example total in-progress time per customer (organization) or average resolution time per sprint, week, month, issuetype, request type, etc. The ability to group by parts of dates (year, month, week, day, hour) or sprints is particularly useful here since it allows you to compare different time periods or see the trend.


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. It supports both Company Managed and Team Managed projects.

Time in Status reports can be accessed through its own reporting page, dashboard gadgets, and issue view screen tabs. All these options can provide both calculated data tables and charts.

And the app has a REST API so you can get the reports from Jira UI or via REST.

Gadget_AverageStatusDurationByComponent.png  tisCloud_StatusDuration_LeadTime_Chart.png

Using Time in Status you can:

  • See how much time each issue spent on each status, assignee, user group and also see dates of status transitions.
  • Calculate averages and sums of those durations grouped by issue fields you select. (For example, see average InProgress time per project and per issue type.)
  • Export your data as XLS, XLSX, or CSV.
  • Access data via REST API. (for integrations)
  • Visualize data with various chart types.
  • See Time in Status reports on Jira Dashboard gadgets


0 votes
Bharathi Rising Star Aug 25, 2022

Hi @Kamal Rajpal,

While you cannot configure this out-of-the-box with Jira, you can use plug-ins to create a custom field that calculates the age.

One option I've seen is to use the JWT plug-in that provides calculated number field option where an expression can be written using the issue created date and resolved date.

Hope this helps.


@Bharathi thanks for mentioning us!

Hi @Kamal Rajpal,

Yes, you can achieve this functionality with JWT calculated number fields!

JWT calculated number fields can display up-to-date information in real time. The necessary configuration for your desired outcome would consist of a simple expression and a display format, which can be selected among several options or customized according to your needs.



The expression for the calculated field that you propose would be:

{issue.resolutionDate}!=null ? {issue.resolutionDate}-{issue.created} : {system.currentDateTime}-{issue.created}


The different default display formats available for JWT calculated fields are the Long duration format and the Short duration format. They would be displayed like in the below pictures.



This tool and many more are included in Jira Workflow Toolbox (Server/Data Center). If you need more information, take a look into our documentation or raise any question via our Support Service Desk. We will gladly help you!

Best regards,

Vicente Domínguez

Like Bharathi likes this

Suggest an answer

Log in or Sign up to answer