Hi all,

ok so far, i got this scrip to work! Thanks everybody who helped.

The last question is, how can i change the scrip to avoid sending a "your
ticket has been closed" email?

Best regards Thomas


Am 12.07.2007 19:50 Uhr schrieb "Gene  LeDuc" unter <[EMAIL PROTECTED]>:

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


_______________________________________________
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