Hi all I’m hoping someone can help with creating a custom report.<\/p>\n
*We have a client who requires us to submit time sheets for work undertaken.
\n*A ticket may be closed on the same day it was opened, but also may stay open for several days. In some cases will be open across 2 months.
\n*The report must show the time spent per tech, per ticket, and also detail which days the work was done.
\n*The report will only ever span a single month so the status of a ticket is not relevant to the report.
\n*The report should only produce entries for the time spent in the specified reporting month.<\/p>\n
So ultimately I need a report to show something like:<\/p>\n
Ticket # | Summary | Update Date | Updated By/Assignee | Time Spent<\/p>\n
Which would hopefully produce a report sorted and grouped by date showing something like:<\/p>\n
1 | Help | 16/04/2013 | Andrew | 15m
\n2 | Printer | 16/04/2013 | John | 1h
\n1 | Help | 17/04/2013 | John | 5m
\n3 | Network | 17/04/2013 | Andrew | 1h<\/p>\n
Is it possible?<\/p>\n
If it is possible, is there a way to have the time on any given day stop counting after 7.5 hours and perhaps show something like CAP REACHED.<\/p>\n
TIA<\/p>\n
AndrewK<\/p>","upvoteCount":5,"answerCount":8,"datePublished":"2013-05-07T22:51:50.000Z","author":{"@type":"Person","name":"andrew-k","url":"https://community.spiceworks.com/u/andrew-k"},"acceptedAnswer":{"@type":"Answer","text":"
Try This, edit the following 2 lines<\/p>\n
AND ticket_work.created_at > DATE (‘now’, ‘-7 day’)
\nAND ticket_work.created_at < date(‘now’)<\/p>\n
Change them to this<\/p>\n
AND ticket_work.created_at > ‘2013-04-01’
\nAND ticket_work.created_at < ‘2013-04-30’<\/p>\n
Make sure you use the leading zero when a day or month is single digit, if you don’t the report will wig out and do weird things.<\/p>","upvoteCount":0,"datePublished":"2013-05-08T01:11:55.000Z","url":"https://community.spiceworks.com/t/report-help/211381/4","author":{"@type":"Person","name":"molan","url":"https://community.spiceworks.com/u/molan"}},"suggestedAnswer":[{"@type":"Answer","text":"
Hi all I’m hoping someone can help with creating a custom report.<\/p>\n
*We have a client who requires us to submit time sheets for work undertaken.
\n*A ticket may be closed on the same day it was opened, but also may stay open for several days. In some cases will be open across 2 months.
\n*The report must show the time spent per tech, per ticket, and also detail which days the work was done.
\n*The report will only ever span a single month so the status of a ticket is not relevant to the report.
\n*The report should only produce entries for the time spent in the specified reporting month.<\/p>\n
So ultimately I need a report to show something like:<\/p>\n
Ticket # | Summary | Update Date | Updated By/Assignee | Time Spent<\/p>\n
Which would hopefully produce a report sorted and grouped by date showing something like:<\/p>\n
1 | Help | 16/04/2013 | Andrew | 15m
\n2 | Printer | 16/04/2013 | John | 1h
\n1 | Help | 17/04/2013 | John | 5m
\n3 | Network | 17/04/2013 | Andrew | 1h<\/p>\n
Is it possible?<\/p>\n
If it is possible, is there a way to have the time on any given day stop counting after 7.5 hours and perhaps show something like CAP REACHED.<\/p>\n
TIA<\/p>\n
AndrewK<\/p>","upvoteCount":5,"datePublished":"2013-05-07T22:51:50.000Z","url":"https://community.spiceworks.com/t/report-help/211381/1","author":{"@type":"Person","name":"andrew-k","url":"https://community.spiceworks.com/u/andrew-k"}},{"@type":"Answer","text":"
I have already written and shared a report that will do most if not all of what you want.<\/p>\n