Custom Condition (status and requestor email address)

Hello,

a script should be used when the ticket will be create and a special
email address is the requestor.

I used following custom condition, but it is buggy :-(.

return ($self->TransactionObj->Type eq ‘Create’ &&
$self->TicketObj->Requestor->EmailAddress eq ‘test@domain.com’);

thankx for your help.
Steve

It is:

$self->TicketObj->Requestors with an ‘s’ on the end. There
can be more that one requestor. It returns an RT::Group
object that you have to cycle through and check each
member.

-ToddOn Mon, Mar 15, 2004 at 12:07:57PM +0100, Stefan Kornhuber wrote:

Hello,

a script should be used when the ticket will be create and a special
email address is the requestor.

I used following custom condition, but it is buggy :-(.

return ($self->TransactionObj->Type eq ‘Create’ &&
$self->TicketObj->Requestor->EmailAddress eq ‘test@domain.com’);

thankx for your help.
Steve


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm