Get time accounted and total number of tickets per client from last month

Moderator: crythias

Locked
jdelvecchio
Znuny newbie
Posts: 5
Joined: 30 Jul 2015, 15:07
Znuny Version: 3.3.3

Get time accounted and total number of tickets per client from last month

Post by jdelvecchio »

Hello,
I'm trying to get total time accounted and the total number of tickets per client of the last month.
What I've tried :

Create a TicketAccountedTime stat :
X-axis :
-CustomerID (I chose a few clients, lets say CLIENT1 to CLIENT4)

Value Series :
-none

Restrictions :
-Evaluation by Total Time, Number of Tickets
-Queue : MyQueue
-Ticket Create Time : The last 1 month

Result of this is A CSV file of the type :

ClientList TicketAccountedTimes
CLIENT1 0 (Total Time), 0 (Number of Tickets),
CLIENT2 0 (Total Time), 0 (Number of Tickets),
CLIENT3 0 (Total Time), 0 (Number of Tickets),
CLIENT4 405 (Total Time), 1 (Number of Tickets),

But when I do a research with the web interface, with CustomerID=CLIENT1 and Ticket Create Time = Last 1 month
I get tons of tickets.

Seems like the stats module is very clunky, I can't really rely on it.
Is there another way to get the information I need ?

Thanks in Advance,

Jdelvecchio.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Get time accounted and total number of tickets per client from last month

Post by RStraub »

When you enter "the last month" in stats, it takes all tickets that were created in the month BEFORE the current month. If you do a search however it does the absolute value from NOW.

Try changing the 1 month to 30 days or 5 weeks to get a more precise result.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
jdelvecchio
Znuny newbie
Posts: 5
Joined: 30 Jul 2015, 15:07
Znuny Version: 3.3.3

Re: Get time accounted and total number of tickets per client from last month

Post by jdelvecchio »

I see, thanks RStraub
Tried with 30 days, result is still the same, 0 tickets :(
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Get time accounted and total number of tickets per client from last month

Post by RStraub »

Well, you can always use your ticket search and select "Output -> CSV" in the popup.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Locked