[rt-users] set Due depending on Created

Violetta Wawryk v.wawryk at science-computing.de
Tue Oct 21 10:29:27 EDT 2008


Hi,

can anyone tell me how I can set "Due" depending on the "Created"-Date?

I know how to get the the Creationdate:
my $createdate = ($self->TicketObj->CreatedObj);

But how can I encrease it for example 14 days?

I did find something that takes the scrip execution time and adds 1 day.
$duedate->Set(Format=>'unknown', Value=>'1 days');
But that doesn't work if I want to change it 3 days later, because than 
I would have all in all 17 days.

I know that I can write the new date with:
$self->TicketObj->SetDue($duedate->ISO);


So all I need is the step inbetween.

Thanks,

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 





More information about the rt-users mailing list