SQL query to get imputed time

Good Morning,

I need to get the time allocated by user and project, filtering by dates.

How do I get it through an sql query?

The imputed time table is "worklog", but I need to cross the Author with the username, and the TIMEWORKED in hours.

Thank you very much,
Greetings from Spain!
Eve

2 answers

This widget could not be displayed.

Alternatively you can use the SQL for JIRA Driver which is easier and lesser risks than accessing to the JIRA native database. Furthermore, since the 3.1 version, the users' worklogs are supported in the Data Analysis console so you can summarize and filter users' work logs with drag&drop, view results as charts, etc.

This widget could not be displayed.

I have the following:

select
jira.cwd_user.DISPLAY_NAME USUARIO, jira.customfieldvalue.TEXTVALUE CENTRO_DE_COSTE, round(jira.worklog.timeworked/3600,2) Horas
from
jira.worklog ,
jira.cwd_user,
jira.jiraissue,
jira.customfieldvalue

where
jira.cwd_user.user_name = jira.worklog.author and
jira.jiraissue.id = jira.worklog.issueid and
jira.customfieldvalue.issue = jira.jiraissue.id
and
startdate > '07/06/15'

 

But I need to get the total time per person and date.

image2016-11-17 9:40:43.png

 

 

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

293 views 5 0
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