Alex where I locate the parameter TimeInterval??


  $Param{New}->{"TimeInterval"} = $Param{New}->{"TimeInterval"} * 60;



In that place it has to be located of the GenericAgent.pm?


Have I to edit the AutoPriorityIncrease.pm and send the parameter to it?


Thank you very much and he forgives the inconvenience.




Saludos,
Ing. Gonzalo Balatti Viera - CSU IBM Uruguay.
Plaza Independencia 721.
Teléfono 902 36 17  Int 5705.



Alexander Scholler <alexander.scholler@augsburg.de>
Sent by: otrs-bounces@otrs.org

06/28/2006 02:22 AM
Please respond to
"User questions and discussions about OTRS.org"

To
"User questions and discussions about OTRS.org" <otrs@otrs.org>
cc
Subject
Re: [otrs] Close Ticket





Hi Gonzalo,

Gonzalo Balatti schrieb:
>
> Alex,  muchas gracias!!
>
> Having used is a escalation with the package AutoIncreasePriority, but
>  gives a mistake of parameter.
> says something as TimeInternval.
>
> Can you help me?

examine the source code:

  $Param{New}->{"TimeInterval"} = $Param{New}->{"TimeInterval"} * 60;

Interpret TimeInterval as minutes => so multiply with 60 to get seconds.


    # find latest auto priority update
    foreach my $History (@HistoryLines) {
        if ($History->{Name} =~ /^AutoPriorityIncrease/) {
            $LatestAutoIncrease = $History->{CreateTime};
        }
    }

Finds the last autoincrease-history-entry.

if (!$LatestAutoIncrease) {
        $LatestAutoIncrease = $Ticket{Created};
    }

If nothing was found, use the ticket-creation-time.

    if (($Self->{TimeObject}->SystemTime() - $LatestAutoIncrease) >
$Param{New}->{"TimeInterval"}) {
        $Update = 1;
    }

If the last Update is more than TimeInterval ago, increase the priority.

So, TimeInterval is a parameter needed by this GenericAgent-module.

>
> Saludos,
>
>
>
> Saludos,
> Gonzalo Balatti Viera - CSU IBM Uruguay.
> Plaza Independencia 721.
> Teléfono 902 36 17  Int 5705.

Bye, Alex

_______________________________________________
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
Support orr consulting for your OTRS system?
=> http://www.otrs.com/