[rt-users] scrip to setting due date back to unset

Kenneth Crocker KFCrocker at lbl.gov
Thu Oct 9 13:37:32 EDT 2008


Violetta,



	If you have a scrip that modifies ticket data that is ALSO set by 
default RT code, you need to make the "STAGE" of the scrip in batch 
mode. That should do it. I've had that problem before and that fixed it.


Kenn
LBNL

On 10/9/2008 5:30 AM, Violetta Wawryk wrote:
> Hey,
> 
> My queustion is the following. I have a queue where the default for the 
> due date is set to 7 days. I have different scrips that set the due date 
> to either 1 or 14 if the subject contains certain key words.
> 
> As I understand RT, as soon as a ticket comes in the defaults in the 
> basics will be set and if there are different matching scrips they 
> change the wished values like due date.
> 
> So what do I have to do to unset the due date?
> 
> This is the part of the scrip I use to set it to 1 day:
> 
> my $duedate = RT::Date->new($RT::SystemUser);
>    $duedate->Set(Format=>'unknown', Value=>'1 days');
>    $self->TicketObj->SetDue($duedate->ISO);
> 
> Thanks for your help.
> 
> Violetta
> 
> 
> 




More information about the rt-users mailing list