[rt-users] Auto advance due date?
Kenneth Crocker
kfcrocker at lbl.gov
Thu Feb 3 12:53:29 EST 2011
David,
Try this:
Description: On Correspond Update Due
Condition: On Correspond
Action: User Defined
Template: Global: Blank
Stage: TransactionBatch
Custom Action Prep Code:
my $trans = $self->TransactionObj;
my $ticket = $self->TicketObj;
my $Due = new RT::Date( $self->CurrentUser );
# Add 5 days to Due Date
$Due->SetToNow();
$Due->AddDays( 5 );
$ticket->SetDue( $Due->ISO );
return 1;
Custom Action Cleanup Code:
return 1;
Hope this helps.
Kenn
LBNL
On Thu, Feb 3, 2011 at 8:17 AM, David Gibbs <david at midrange.com> wrote:
> Folks:
>
> Can anyone recommend a Scrip or extensions that will allow me to
> automatically advance the due date on a ticket when it's replied to?
>
> I would like to advance the due date to 5 days from the time it's replied
> to automatically.
>
> Thanks!
>
> david
>
> --
> IBM i on Power Systems - For when you can't afford to be out of business
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110203/04e23f78/attachment.htm>
More information about the rt-users
mailing list