Re: [rt-users] set Due depending on Created

2008-10-22 Thread Ruslan Zakirov
my $created = $self->TicketObj->CreatedObj; $created->Add...; my ($status, $msg) = $self->TicketObj->SetDue( $created->ISO ); $RT::Logger->error("Couldn't set due date: $msg") unless $status; On Wed, Oct 22, 2008 at 5:46 PM, Violetta Wawryk <[EMAIL PROTECTED]> wrote: > > Hi, > > yes I am doing tha

Re: [rt-users] set Due depending on Created

2008-10-22 Thread Violetta Wawryk
Hi, yes I am doing that already, but they add the days to the current date and not the Created date. Does anyone actually know how I can tell the perlthing to use the created date and not the current date. That would be very helpful. Thanks. Violetta Ruslan Zakirov schrieb: > Look into RT::

Re: [rt-users] set Due depending on Created

2008-10-21 Thread Ruslan Zakirov
Look into RT::Date class - lib/RT/Date.pm there are several simple methods to add time to the date. On Tue, Oct 21, 2008 at 6:29 PM, Violetta Wawryk <[EMAIL PROTECTED]> wrote: > Hi, > > can anyone tell me how I can set "Due" depending on the "Created"-Date? > > I know how to get the the Creationda

Re: [rt-users] set Due depending on Created

2008-10-21 Thread Kenneth Crocker
Violetta, In the "Basics" screen of a Queue (Configuration->Queues->select Queue) you will see the "Requests should be due in" field. If set to a value greater than 0, the due date will be automatically set. That should do it. However, that means that ALL requests that come in will get