Weekly or monthly reports of billable time per person
Hello,
We have many remote employees, a hard working group, but we need to be able to track their time accounted on a monthly or weekly basis, i.e...
- Jim totaled 1865 billable minutes this week.
or...
- Bill totaled 2015 billable minutes this month.
I've spent a lot of time searching forums for a method but have not found anything I could work with.
Surely other people have wanted to do this sort of thing.
Any suggestions?
Weekly or monthly reports of billable time per person
Moderator: crythias
-
- Znuny newbie
- Posts: 5
- Joined: 29 Jul 2011, 18:08
- Znuny Version: 3.0.9
- Real Name: Steve Parker
- Company: Spark Interactive, Inc.
- Location: Broomfield, CO
Re: Weekly or monthly reports of billable time per person
I'd love to know an answer to this one as well. I've been playing in SQL to try go generate it, but can't figure out the relationships between all the tables properly. If anybody has done this, it'd be great if you could post the SQL here (or an .xml file for a new report)...
Steve

Steve
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Weekly or monthly reports of billable time per person
Here's a breakdown sql query: viewtopic.php?f=60&t=12546
You could "group by" and sum
You could "group by" and sum
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 5
- Joined: 29 Jul 2011, 18:08
- Znuny Version: 3.0.9
- Real Name: Steve Parker
- Company: Spark Interactive, Inc.
- Location: Broomfield, CO
Re: Weekly or monthly reports of billable time per person
Thanks Crythias! Just last night, I finally came up with the following SQL that does something similar.crythias wrote:Here's a breakdown sql query: http://forums.otrs.org/viewtopic.php?f=60&t=12546
You could "group by" and sum
Code: Select all
select distinct
ticket.id, ticket.tn, ticket.title,
article.a_subject, queue.name,
users.login, time.change_time, time.time_unit
from
ticket ticket,
ticket_history history,
time_accounting time,
article,
queue,
users
where
ticket.id = history.ticket_id and
ticket.id = time.ticket_id and
ticket.id = article.ticket_id and
ticket.queue_id = queue.id and
ticket.user_id = users.id and
article.id = history.article_id and
article.id = time.article_id
order by
time.change_time
;
Hopefully I got it "right", but if not, I'll use your example...
Have a GREAT day!
Steve