But I don't need them... What I'm looking for is to create stats by agent and to show them at the dasboard instead of the 7 day stats. I already have a report configured from the STATISTICS module:
This information is the one that I need to be shown on the graph at the dashboard (Agents instead of days and current month instead of just 7 days). The graph does not have to be like this.
I'm guessing that this has to be done from code (maybe.. ).
I've found this but it is quite old: http://doc.otrs.org/developer/2.4/en/html/x605.html
I wonder what kind of variables should go instead of days, and how to tell the graph to calculate the last 30 days.
Code: Select all
my %Axis = (
'7Day' => {
0 => { Day => 'Sun', Created => 0, Closed => 0, },
1 => { Day => 'Mon', Created => 0, Closed => 0, },
2 => { Day => 'Tue', Created => 0, Closed => 0, },
3 => { Day => 'Wed', Created => 0, Closed => 0, },
4 => { Day => 'Thu', Created => 0, Closed => 0, },
5 => { Day => 'Fri', Created => 0, Closed => 0, },
6 => { Day => 'Sat', Created => 0, Closed => 0, },
},
);