Linear priority escalation

Hi,

The priority escalation module in RT3 distribution (RT::Action::EscalatePriority)
uses the escalation formula
Priority = Priority + (( FinalPriority - Priority ) / ( DueDate-Today))
which is not linear and not suitable for short due periods:

In our case, the final priority is 10, and the due date is 2 days.
We want the priority to escalate linearly from 0 to 10 every few
hours during these two days.

See the new module (attached), which uses the formula
Priority = FinalPriority * (Now-Starts) / (DueDate-Starts)

Regards,
Stanislav

EscalatePriorityLinear.pm (3.51 KB)

Did you also saw that there is a problem with RT::Action::SendEmail ?
Sorry, not correct, SendEmail does not work if you use rt-crontool,
because rt-crontool does not pass (or get) the transactionobj.
In my opinion it is the cause for getting an unexpected end of
header…
I also tried the LightWeightSendMail, the mail was send, but without
contents…
Do someone has a solution?
I saw that Stanislav is one of the best contributor of patchs and
improvements, are his patchs going to be integrated in the next releases
of RT?

Thanks

Samuel Senoner-----Original Message-----
From: Stanislav Sinyagin [mailto:ssinyagin@yahoo.com]
Sent: Wednesday,16 July,2003 16:22
To: rt3@fsck.com; rt-devel@lists.fsck.com
Subject: [rt-devel] Linear priority escalation

Hi,

The priority escalation module in RT3 distribution
(RT::Action::EscalatePriority) uses the escalation formula
Priority = Priority + (( FinalPriority - Priority ) / (
DueDate-Today)) which is not linear and not suitable for short due
periods:

In our case, the final priority is 10, and the due date is 2 days. We
want the priority to escalate linearly from 0 to 10 every few hours
during these two days.

See the new module (attached), which uses the formula
Priority = FinalPriority * (Now-Starts) / (DueDate-Starts)

Regards,
Stanislav

Hi Samuel,

Did you also saw that there is a problem with RT::Action::SendEmail ?

not yet. We’ve just recently put RT3 in production, so maybe
some time later we will need it.

I saw that Stanislav is one of the best contributor of patchs and
improvements, are his patchs going to be integrated in the next releases
of RT?

Thank you, but I estimate myself somewhere below Jesse and Autrijus in Top 20
patch contributors…

Cheers,
Stan