Hi Forrest,

At 05:50 AM 7/12/2007, Forrest Blount wrote:
I think you're going wrong in your custom condition. The Transactions table doesn't have a subject field...
I think what you want is more like:
return($self->TransactionObj->Field eq "Subject" &&
      $self->TransactionObj->NewValue eq "HMPF");

The Transaction table of the database does not have a Subject field, but $self->TransactionObj->Subject() is a method that returns the subject from the transaction. The conditions I gave in my original post will work if the typos that were added are removed.

Thomas Hecker wrote:
But it still does not work. Here is what i did:

Custom condition:
my $Transaction = $self->TransactionObj;
return $Transaction->$Transaction->Subject ='HMPF';

Typo here.  Should be:
return $Transaction->Type eq 'Correspond' && $Transaction->Subject =~ /HMPF/;

Regards,
Gene



--
Gene LeDuc, GSEC
Security Analyst
San Diego State University
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com

Reply via email to