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!

2 answers

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.

I have the following:

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

jira.cwd_user.user_name = jira.worklog.author and
jira.jiraissue.id = jira.worklog.issueid and
jira.customfieldvalue.issue = jira.jiraissue.id
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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

26,775 views 2 7
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