[rt-users] OnCreate NotifyAdminCcs
mathew_ericson at agilent.com
mathew_ericson at agilent.com
Thu Mar 13 21:28:01 EDT 2008
Rt-users,
I was wondering if you could help me - I am trying to develop a Scrip custom condition that will prevent notification if a "Owner: <owner>" field has been emailed in ticket creation. We are using RT to generate tickets via email and in some cases we assign the owner on submission - the entire team that is 'watching' the queue does not need to receive email about tickets that already have an owner.
OnCreateNotifyAdminCc
Condition: OnCreate
Action: Notify AdminCcs
Template: Global template: Transaction
Stage: TransactionCreate
Custom condition:
my $transactionType = $self->TransactionObj->Type;
my $ticketOwner = $self->TicketObj->Owner;
if ($transactionType eq 'Create') {
return 1 if ($ticketOwner()->Id() != $RT::Nobody()->Id());
}
return 0;
Ultimately we only want to continue executing the script if the owner is NOT Nobody.
Regards Mathew
Mathew Ericson
IT Specialist (Systems Design)
Agilent Technologies, Inc.
+613 9210-5956 Tel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20080314/3d64e036/attachment.htm>
More information about the rt-users
mailing list