Just checked my code in our development system and changed it.
Try this:
my $Due = new RT::Date( $self->CurrentUser );
$Due->SetToNow();
$Due->AddDays( 7 );
$self->TicketObj->SetDue( $Due->ISO );
return 1;
This is working on 3.8.6 and should work on 3.6.2 also.
> -Ursprüngliche Nachricht
What is in the log files?
> -Ursprüngliche Nachricht-
> Von: Steven Platt [mailto:steven.pl...@hpa.org.uk]
> Gesendet: Donnerstag, 20. Mai 2010 16:58
> An: Loos, Christian
> Cc: rt-users@lists.bestpractical.com
> Betreff: RE: Date format to set Due Date with scrip?
>
> I added these but
I added these but got the same result.
-Original Message-
From: Loos, Christian [mailto:cl...@netcologne.de]
Sent: 20 May 2010 15:41
To: Steven Platt
Cc: rt-users@lists.bestpractical.com
Subject: AW: Date format to set Due Date with scrip?
You need in Custom action prep code:
return 1;
You need in Custom action prep code:
return 1;
and at the end of my example also a:
return 1;
> -Ursprüngliche Nachricht-
> Von: Steven Platt [mailto:steven.pl...@hpa.org.uk]
> Gesendet: Donnerstag, 20. Mai 2010 15:44
> An: Loos, Christian
> Cc: rt-users@lists.bestpractical.com
> Betr
Thanks Chris,
Unfortunately this gives me a 'ticket could not be created due to an
internal error' message. Tried it both as a regular and as a privileged
user.
The notification emails are generated but a search for the ticket number
gives 'Could not load ticket NUMBER'. The ticket number is also
I think better would be this way:
my $Due = new RT::Date( $self->CurrentUser );
$Due->SetToNow;
$Due->AddDays( 7 );
$self->TicketObj->SetDue( Format =>, 'ISO', Value => $Due->ISO );
--
Chris
Am 20.05.2010 14:28, schrieb Steven Platt:
> Hi,
>
> The config setting ‘Requests should be due in:’ i
Hi,
The config setting 'Requests should be due in:' is not working, so I'm
trying to write a scrip to set the DueDate on ticket creation. I'm on RT
v3.6.2 and don't want to upgrade just for this issue.
Following advice on the wiki I've got the following
Condition: On Create
Action: