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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Service Desk

Wy are we still using email for Service Desk workflows?

...attest to the experience of an urgent approval that gets lost in the boss’s inbox and requires that special “Please Approve” email or text message. In an age where we have distributed teams...

56 views 0 2
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