How to extract time spent between two dates ?


We use the 6.1 version of JIRA (on auto-hosted instance), and I face a problem on extracting statistics from our tickets.

In fact, we use the "Time spent" feature to log the time our developers spend on each ticket (sometimes the tickets are re-opened to add extra time).

So, I'm trying to extract the time spent on some tickets "between two dates" (and not the total time spent for these tickets).

But I didn't find any option to filter the timeSpent data.

Have anybody an idea about it ?

Thanks !

2 answers

1 accepted

I used finally a MySQL query (we have access to the database) :

select distinct
  P.pname as Projet
,CONCAT(PK.PROJECT_KEY,'-',Child.issuenum) as Ticket,
Child.Summary as Nom
  ,replace(sum(WL.timeworked)/3600,'.',',') as Heures
, Type.pname as Type
from worklog WL
join jiraissue Child on WL.issueid = Child.ID
join issuetype Type on Child.issuetype = Type.ID
join project P on Child.PROJECT = P.ID
join project_key PK on PK.PROJECT_ID = P.ID

where 1=1
and WL.STARTDATE >= '2013-12-01'    
and WL.STARTDATE <= '2013-12-31'      


you can use the tempo plugin, that will give you the ability to find time logged between two calendar dates,


Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,313 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot