Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I export the start time, open time, close time of a story or task

I want to calculate the elapsed time for each story or task

How do I export the start time, open time, close time of a story or task

4 answers

1 accepted

0 votes
Answer accepted

Hi @zoulei_cn_ibm_com , Welcome to the community!

Unfortunately it is not possible out-of-the-box in Jira. JQL does not have capability to compute time spent between statuses. However, the data you need is implicitly available in issue history. You can get issue history via Jira rest api and then you need parse the json response(similar to the below), calculate the time difference for each issue.

JiraRestApi-History.png

 

Or, you can try marketplace apps. We built Status Time app for this exact need. It provides reports on how much time spent in each status as well as status entry dates and status transition count. It also has CSV export feature.

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(eg. average in progress time per project).

Here is the online demo link, you can see it in action and try. Hope it helps.

Screen Shot 2020-12-01 at 11.44.18.png

dear, I use postman to call the api, but it always return 404, can you give me some suggests? thanks.

截屏2020-12-08 上午11.35.09.png

One of the below cases might be the reason.

  • Try passing the issue key similar to "issue/PBI-3" not just "issue/3"
  • Check if you have a context path after your domain while you are using jira from browser. e.g https://mydomailn.com/jira. If so, be sure that you are using the same context path in your postman url too.
  • Authentication might be the issue. Using browser login to your jira and in a new browser tab just paste your rest api url and check the response.

thanks, I have run it work well , another question is I want to get  issue  startDate, endDate, completeDate, activatedDate , can you give me one rest api  for get them ? ? thanks.

The same rest api provides all the issue fields you need.

If my fist answer above helped you, could you please mark it as "accepted answer"?

Hello @zoulei_cn_ibm_com 

Time between Statuses (server version) becomes helpful in this case. This add-on calculates how long it takes an issue to move from one status to another. 

tbs.png

Also, exporting is available. You can download data as XLSX or CSV file and analyze it using Google Spreadsheets, Microsoft Excel etc. So you can export the start time, open time, close time of a story, or task easily!

I hope it helps.

Best regards, Mariana.

Hi @zoulei_cn_ibm_com 

You can measure the time spent in a task or a story with Enhancer Plugin for Jira.

Enhancer Plugin for Jira has Time between custom field that measures time spent between two statuses /events. You can configure it to measure time spent between Created and Resolved events which will how you the elapsed time for each issue.

Enhancer Plugin for Jira also has Stateoscope tab displays all issue status and assignee changes at a glance, within a handy tab view. Each row displays an action which consists of the transition date, owner, before and after assignee/status, and total duration within the status or assignee. This will help you to analyze the start (created) and close (Resolved) dates of each issue. However, Jira has these fields already and you can add them in the issue navigator as columns to extract reports.

image2017-8-23+12-48-21.pngimage2017-8-25+14-40-29.pngPlease let me know if you have further questions.

Cheers,

Gökçe

Please note that I'm one of the members in the Snapbytes team.

Hello @zoulei_cn_ibm_com ,

Jira does not provide this as a ready-to-go report. You either have to calculate this yourself (by getting the raw data from REST API or DB tables) or use a marketplace app for this.

 

For a ready built solution that offers great flexibility and details, our team at OBSS built Time in Status app for this exact need. It is available for Jira Server, Cloud and Data Center.

Time in Status allows you to see how much time each issue spent on each status or assigned to each assignee as well as entry/exit dates for all statuses. You can also combine statuses into consolidated columns to see metrics like Ticket Age, Cycle Time or Lead Time. You can calculate averages and sums of those durations and counts grouped by issue fields you select. (For example see the total InProgress time per Epic, or average number of InProgress transitions per issuetype). 

tisCloud_StatusDuration_Report.png  tisCloud_MainPage_Chart_Pie_ExcludeMarked.pngtisCloud_IssueView_Chart_StackedColumn.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.

The app has Custom calendar support which means you can get your reports based on a 24/7 calendar or your custom business calendar. (This one is important because a 24/7 calendar in most cases shows misleading data. For example an issue created at 16:00 on Friday and was resolved at 09:00 on next Monday seems to stay open for 2,5 days but in terms of business hours, it is only a few hours. You can see this using Time in Status by OBSS.)

Finally, the app has History Trim feature. This feature allows you to report on a subsection of issue histories instead of the whole history. Very useful when you want to focus on changes made during sprint or project phase.

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 issuetype.)
  • 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 (released for cloud, server&DC gadget coming soon)

https://marketplace.atlassian.com/1211756

EmreT

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

281 views 8 7
Read article

Community Events

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

Events near you