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

0 votes
Accepted answer

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 Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,152 views 5 10
Read article

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