[rt-users] setting the DueData upon ticket creation

Michael Bochynski mbochynski at audiumcorp.com
Fri Jul 15 11:03:31 EDT 2005


Hi All,

I struggle with a (small) issue. I bet there is a simple solution for
this, however... 

Here's what I do

1. I send an email, which has month:MM, day:DD, year:YYYY, hour:HH,
min:NN fields in the body
2. I want to extract those fields and create ticket's DueDate with those
values.

I was looking at http://wiki.bestpractical.com/index.cgi?
SetTicketPropertiesViaMail

However somehow I cannot set the DueDate.

In my scrip, instead of

if( $content =~ m/^\QSet-Owner:\E\s*(\S+)\s*$/m ) {

      $self->TicketObj->SetOwner( $1 );
}

I use 

if( $content =~ m/^\Qmonth:\E\s*(\S+)\s*$/m ) {

      my $month = $1;
}

and so on for every field. 

However, I cannot set the DueDate later on. I tried with
$self->TicketObj->SetDue($date) 

however I have problems with creating proper $date field.

Any ideas?

Michael



More information about the rt-users mailing list