>
>  I want to to fix the date range to only last week in the report web
> interface

So do that (?)  I see you *can't* in your interface (01 restrictions). You
haven't provided enough information to figure out why, but you should be
able to include relative time in step 4 of the stat *most* of the time.
According to the code,         "       <PARAM_STRING> e. g.
'Year=1977&Month=10' (*only for static files*)\n";

And the code is looking for:
if ( $Stat->{StatType} eq 'static' ) {
    $GetParam{Year}  = $Y;
    $GetParam{Month} = $M;
    $GetParam{Day}   = $D;

    # get params from -p
    # only for static files
    my $Params = $CommonObject{StatsObject}->GetParams( StatID => $StatID );

I'm not sure what else there is to document, though. Static stat, Year,
Month, Day.



On Sat, Jul 14, 2012 at 3:07 PM, Soporte Informatica PGJE <
d...@pgje.michoacan.gob.mx> wrote:

> How I can send my date range statistic? In truth, the documentation is
> very poor in this topic
>
> ****
>
> I probe as follows with –p parameter:****
>
> ./otrs.GenerateStats.pl -n 10023 -o /home/martinbarriga/ -f Print -p
> 'Format=GD::Graph::linespoints&GraphSize=1200x800'****
>
> ****
>
> -p 'Year=2012&Month=06&Day=01'****
>
> ** **
>
> regards****
>
> ** **
>
> ** **
>
> *De:* otrs-boun...@otrs.org [mailto:otrs-boun...@otrs.org] *En nombre de 
> *Soporte
> Informatica PGJE
> *Enviado el:* martes, 10 de julio de 2012 11:15 a.m.
> *Para:* d...@otrs.org; otrs@otrs.org
> *Asunto:* [otrs] how to Automatize Stat with Cron****
>
> ** **
>
> Hi, ****
>
> ** **
>
> I want to automatically send a weekly report via email
> (AcumulationTickets), automating it in a Cron job, I think I need to use the
> "otrs.GenerateStats.pl" script.  I want to to fix the date range to only
> last week in the report web interface, or send the date range to the
> script. Because when I’m generating my reports is required to enter a date
> range, so in this part I need to leave it unset.****
>
> https://dl.dropbox.com/u/6443236/otrs/01%20Restrinctions.png****
>
> ** **
>
> This change causes that each creation of reports asked me to put the date
> range in the web interface****
>
> https://dl.dropbox.com/u/6443236/otrs/02%20restrictions.png****
>
> ** **
>
> In this way, I want to pass these parameters (date range) to my otrs script
> (otrs.GenerateStats.pl), but I do not know how to pass it, or the way of
> make a stat that show the last week avoiding otrs.GenerateStats.plparameters.
> ****
>
> ** **
>
> Otrs:  3.1.2****
>
> SO: GNU/Linux Debian****
>
> ** **
>
> Regards.****
>
> ** **
>
> --****
>
> PROCURADURIA GENERAL DE JUSTICIA DEL ESTADO****
>
> Departamento de Desarrollo y Mantenimiento Informático****
>
> Ext. 1144****
>
> --****
>
> ** **
>
> ---------------------------------------------------------------------
> OTRS mailing list: otrs - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/otrs
> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
>
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Reply via email to