Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Track time spent in each status using SQL Edited

Mukama I'm New Here Jan 27, 2021

Has anyone downloaded the Jira logs and written a query to track time spent in each status for example; 

  1. From "To - Do" to  "In - Progress"

And also filtered it by timezone, and day.

 

If yes kindly walk me through how to do it.

3 answers

0 votes

Hello @Mukama ,

To export the data from Jira DB is so difficult. me trying to get articles. But unable to get them on Status wise time spent reports.

You need to combine Users Table , Workflow , Worklog  and Users related info. It's highly difficult taks.

select p.pkey,j.issuenum,w.author,w.CREATED, (w.timeworked/60/60) as "Log work"
from project p
inner join jiraissue j on p.id=j.project
inner join worklog w on w.issueid=j.id order by w.CREATED DESC;

The above will gives total time spent by a user in project. this is from Atlassian only I think.

 

My suggestion is to look for Plugins.

Thanks

Hi @Mukama ,

As an alternative, you can try Status Time Free app. It displays status duration for you in issue detail page as below.

IssueScreenView-3.gif

Hi @Mukama 

You can consider other apps from Atlassian Marketplace. For example, Time in status for jira cloud tracks time spent in each status automatically.

Regards

Suggest an answer

Log in or Sign up to answer
TAGS

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