Scrip to setting due date back to unset

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

________________________________ creating IT solutions
Violetta J. Wawryk science + computing ag
IT-Service Hagellocher Weg 73
phone +49 7071 9457 282 72070 Tuebingen, Germany
fax +49 7071 9457 211 www.science-computing.de
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Florian Geyer,
Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Prof. Dr. Hanns Ruder
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196

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
LBNLOn 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

Hey Kenn,

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.

No it doesn’t :-/ Still thank you for your help.

Any other idea, anyone?

How can I unset the due date during creation when ususally it is set to
7? (Which is the configuration that is set in the queue basics).

Thanks a lot.
Violetta
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Florian Geyer,
Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Prof. Dr. Hanns Ruder
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196