Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to subtract dates (resolution minus creation) ?

Integrador (Admin) December 12, 2022

Does anyone know how to find out the difference in days between the creation date and the resolution date?

5 answers

3 votes
Lucy Warner_SaaSJet
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 14, 2022

Hello @Integrador (Admin) 

It's a very common case in the community) Here are solutions I recommend you to use:

1. Time in Status for Jira Cloud shows the data you need directly on the dashboard in the Total column.

1 (2).png

2. Time between Statuses can be helpful in this case too. All you need is to create status groups on the beginning of the calculation and for the resolution status.

Both these add-ons are available for exporting data in CSV or XLSX files and are developed by my SaaSJet team. Please, let me know if you have any questions.

3 votes
Hamza Chundrigar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 13, 2022

Hello @Integrador (Admin) 

Hope you're doing well. I'll list out a few options:

  • If you're looking to use Jira Automation to achieve this, you can create a custom text field applied to your issue screen and then try using the following to calculate the difference:
{{issue.created.diff(issue.resolutiondate).prettyPrint}}
  • If you're using a company-managed JSW project then you might be interested in checking out the 'Created vs Resolved' report in the reports section of the board. This gives you a difference chart showing the number of issues created vs the number of issues resolved over a given period of time. 
  • You could also use a 3rd party app like JXL for Jira which would allow you to satisfy your use case. Of course, there are other apps that allow you to do this as well. I just came across a similar post where @Hannes Obweger - JXL for Jira provided commentary on how one would be able to achieve this for another user, so I thought i'd mention it for the sake of providing options :)

 

Kind regards,
Hamza

Integrador (Admin) December 13, 2022

Hi Hamza!

Much appreciate.

 

I use Created vs Resolved Report, but I cannot see the detail of issues for that data aggregate, and I am not sure that the data is correct. 

 

Do you know how it calculate the data?

Do you know if I can see the detailed record for each bar instead of to see the filter data?

 

thanks.

Hamza Chundrigar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 13, 2022

Hi again,

What type of details are you looking for? Also, can you please expand on why you might think the data isn't accurate?

Do you know if I can see the detailed record for each bar instead of to see the filter data?

The Created vs Resolved Issues Report is a Line Chart, not a Bar Chart. Can you confirm if you're viewing the correct report? I ask because there's also a recently created issues report (which is a bar chart) that shows the number of issues created over a period of time for a project or filter, and how many were resolved. 


If you have multiple boards in your project, then please be advised that Jira Software runs reports on each board in the project. Ensure you're viewing the correct board before generating the report.

That being said, the Created vs Resolved Issues Report is there to help you understand whether your issues are moving toward resolution or not. The issues displayed in your report can be determined by:

  • Selecting the Project or the issue filter for which the report has to be generated.
  • Selecting the time-period to see reports like Daily, Weekly, Monthly, Quarterly, Annually, etc. available in the dropdown box.
  • Number of days in the Days Previously field to show in the graph.
  • Select Yes or No for Cumulative totals.
  • Select Display Versions as All Versions from the dropdown list.

  • Created refers to all of the issues that have been created regardless of what status they are in
  • Resolved simply indicates all of the issues that have a resolution set (i.e. resolution is not null/empty).
  • The area gap between these two lines highlights all of the work that needs to be done.

Jira.PNG

 

Best regards,
Hamza

Integrador (Admin) December 14, 2022

Hi Hamza,

Sorry, You are right!

The problem is in the Average Age Chart.

If I want to see the detail in order to confirm data allways display the data of filter. If I revise the data, I think that there are some issue that make increase the inform but I cannot see.

image.png

Any suggestion?

Thanks!

0 votes
Mehmet A _Bloompeak_
Atlassian Partner
December 16, 2022

Hi @Integrador (Admin)

If lead time report is what you need, you can try Status Time Reports app developed by our team. For more detail, you can have a look at the article below.

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

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

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

Hope it helps.

0 votes
Emre Toptancı _OBSS_
Atlassian Partner
December 14, 2022

Hello @Integrador (Admin) ,

Jira's own Age and Created vs Resolved charts offer limited detail and flexibility.

If you are OK with using a marketplace app for this, our team at OBSS built Timepiece - Time in Status for Jira 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     

Time in Status offers two report types for your case:

The first one is Status Duration report (please see the screenshot above) which shows how much time each issue spent on each status. This report type 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.

As an alternative approach, Time in Status also has Duration Between Statuses report type which shows the duration between two specific statuses. This report type also allows the user the exclude the times for "pause" statuses.

tisCloud_DBS_Metrics.png  tisCloud_DBS_Report.png

These reports show a list of issues by default so you can see the metric values for each issue separately. Also, for all numeric report types, you can calculate averages and sums of those durations grouped by the issue fields you select. For example total cycle 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.

Time in Status 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

Timepiece - Time in Status for Jira

EmreT

0 votes
Gaurav
Community Champion
December 13, 2022

Hello @Integrador (Admin) 

The difference between dates can be calculated using smart value ({{[date].[dateformat]}}) with automation rules.

Detailed documentation on the usage is available here.

Kindly accept the answer if it helps.

--GG

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events