[rt-users] blocking mail if custom field defined
G.Booth
G.Booth at lboro.ac.uk
Wed Nov 3 08:03:36 EDT 2010
Hi All
Im having a bit of a scrip problem and would appreciate any thoughts.
I have a custom field which only gets populated under very specific
conditions (we have a method of auto filling a lot of the ticket info for
certain issues which means we only have to fill in the requestor). The field
is called 'Quick' and will either be blank or have the word "quick" in it.
Ive tried to create a scrip on the queue all of these tickets go to, so that
when a "Quick Ticket" is created it doesnt send out a mail.
My scrip conditions are:
Condition: User Defined
Action: Notify Requestors and Cc
Template: Global Template: Autoreply
Stage: TransactionCreate
Custom Condition:
if ($self->TransactionObj->Type eq "Create")
{
if (defined $self->TicketObj->CustomFieldValues('Quick')->Next)
{
return 0;
} else {
return 1;
}
}
Which I thought would do the job, but it doesnt seem to fire. Any thoughts
would be greatly appreciated
regards
Garry
--
Dr Garry Booth
IT Services
Loughborough University
More information about the rt-users
mailing list