[rt-users] Custom onCreate scrip
Andrew Xenides
andrew at staff.esc.net.au
Mon Nov 21 18:16:30 EST 2005
Hi,
I want to do a custom condition for a scrip, which will basically be
OnCreate and Requestor address matches "blah" then send the auto reply.
At the moment I have
if ($self->TrasactionObj->Type =~ 'Create'){
if ($self->TicketObj->RequestorAddresses =~ /dontsend/){
return (undef);
}
if ($self->TicketObj->RequestorAddresses !~ /send/){
return (undef);
}
}else{
return (undef)
}
return(1);
but that seems to be sending the auto reply on every transaction, not just
when the ticket is created.
Im guessing im using the wrongs TransactionObj-> Type
More information about the rt-users
mailing list