I need to find a query that allows me create a report with the hours logged by user.
One issue is worked by several people (users) so I've made this:
worklogAuthor = currentUser() AND worklogDate = startOfDay()
And added to the list view the colum "Time Spent".
The problem is that in the column "Time Spent" I don't see the hours logged by user. I see the total.
There is any way in wich I can see just the hours logged per user without any addon or plug in?
Hi @Sofia Grunspan,
With our app Dynamic Fields for Jira you can create issue fields that aggregate the time spent by user automatically.
Custom Dynamic Fields can be used for statistics and JQL as any other Jira number field.
This is how the expression for your Dynamic Field could look like:
issue.changelogs.filter(entry => entry.author.accountId == 'USER_ACCOUNT_ID').flatMap(entry => entry.items.filter(item => item.fieldId == 'timespent')).map(item => Number(item.to) - Number(item.from || '0')).reduce((a,b) => a+b, 0)
This will give you the time spent in seconds, which is the default format used in Jira expressions. You can easily get in in minutes or hours by dividing by 60 or 3600 at the end of the Jira expression.
Please note that you would have to create a Dynamic Field for every user individually to create your report.
If you need help in setting up your custom Dynamic Fields, don't hesitate to get in touch with our support.
Thanks, I was actually looking for some way to achieve it without resorting to add-ons or plug-ins, but I will consider this option.
Thanks again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sofia Grunspan ,
I would suggest looking at the Workload Pie gadget, as this could be used to get a sum of all time per user as you can see :
You can see how to enable this gadget in Atlassian documentation : https://confluence.atlassian.com/jira064/workload-pie-chart-report-720416073.html
Let me know if this helps,
--Alexis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexis, unfortunately it doesn't help because the workload pie chart gadget shows me the statistic by assignee. And here I have one issue worked by lot of people besides the assignee.
So I need to see the time logged in the issue by user, not assignee.
Anyways, thanks for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.