Have you modified that code, you need to provide the status name to which you need the duration?
Example: Open status.
Once the ticket is created wait for some time and the transit the ticket to another status and then check, it should show the time duration.
Hello @Mahesh Kallepalli
You can use Time in Status for Jira Cloud to generate the reports you are looking for.
In fact, you can see the report on how long your issues have been staying in their statuses right after opening the add-on. You can choose the time format, for you I think "Days Hours Minutes" will give you the results you want to achieve.
With this add-on, you can generate Time in Status, Status Count, Transition Count, Assignee Time, Average Time, Status Entrance Date, and Time in Status per Date reports.
Also, this add-on has an advanced filtering system: by project, filter, report, label, sprint, and assignee (also by issue creation, update, and resolution date).
You can export all the data as an excel file and use it for further analysis.
Try the add-on for free, hope this will help you.
Hello Insight users, As part of our (Mindville's) acquisition by Atlassian, our training team is looking to build some new Insight training materials and we want to hear from you! ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events