Forums

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

I want to capture the time of changing status

Jason Liu
Contributor
November 3, 2021

Hi, I want to capture the time or date of changing the issues to an exact status. We prefer using API. Could anyone make some suggestions? Thank you.

4 answers

1 vote
Gaurav
Community Champion
November 3, 2021

Hello @Jason Liu 

The timestamp of status change is by default captured in Jira and can be used in reports.

Could you please explain the use case and usage for capturing the time or date of changing the issues to an exact status?

Ismael Jimoh
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.
November 3, 2021

Adding to what Gaurav mentioned this is already stored in your issue history section of the page. There are possible workarounds for fetching it via an API such as saving this in a custom field but understanding your context of usage here would help with advising how to proceed.

Jason Liu
Contributor
November 3, 2021

User is using it to do data analysis. We couldn't add field any more. So could you suggest specific API instruction or other solutions? Thank you.

Gaurav
Community Champion
November 3, 2021

Hello @Jason Liu 

The details are available in the issue history. Also, you can refer to and use the API shared by @Mehmet A _Bloompeak_

0 votes
Rahul_RVS
Atlassian Partner
November 4, 2021

Hi @Jason Liu 

If you would be interested in a ready made solution to view the status transition dates, you can try out our app

Agile Tools - Epic Tree, Links Tree and Time in Status 

The add-on provides the time in each status for the entire lifecycle of the issue and you can filter by issue type as well. You can also combine your statuses to define your lead/cycle/resolution time and also extract the transitions history of the issues. The main features of the app are as below

  • More than 8 types of 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 grouping
  • Save your reports
  • CSV Export
  • Multiple chart types
  • Dashboard Gadget

TIS- Status Transition Dates.PNG

0 votes
Emre Toptancı _OBSS_
Atlassian Partner
November 4, 2021

Hello @Jason Liu,

Our team at OBSS built Timepiece - Time in Status for Jira app for this exact need and more. It is available for Jira Server, Cloud, and Data Center.

Using Time in Status, you can get ready analysis reports from the UI or REST API.

First, your question: Time in Status can give you status transition dates in bulk.

Please note that an issue can visit the same status more than once. So getting the first and last transition dates matters which Time in Status can give both. It can also get you reports showing when an issue LEFT a status. This one is also important to see when was the last time an issue was in a given status.

tisCloud_FirstTransitionToStatusDate_Report.png  

If you are interested in ready analysis reports, Time in Status allows you to see how much time each issue spent on each status and each assignee. 

tisCloud_StatusDuration_LeadTime_with Estimates.png  tisCloud_AssigneeDuration.png

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 week, month, issuetype etc.

tisCloud_StatusDuration_LeadTime_Average_TimeGrouped.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.

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

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
Mehmet A _Bloompeak_
Atlassian Partner
November 3, 2021

Hi @Jason Liu ,

The data you need is available in issue history and you can get it using the issue REST API. It provides the exact status change date time for each issue.

/rest/api/2/issue/{issueIdOrKey}?expand=changelog
Mehmet A _Bloompeak_
Atlassian Partner
November 3, 2021

If you are looking for a ready-made solution instead of dealing with Json API response parsing and calculation, you can try Status Time app developed by our team. It provides reports on when status changes happened as well as how much time passed in each status.

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. It has various other reports like assignee time, status entry dates, average/sum reports by any field(e.g. average in progress time by project, average cycle time by issue creation month). And all these are available as gadgets on the dashboard too.

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.

stf-issue-screen-view-2.png

Suggest an answer

Log in or Sign up to answer