[rt-users] Suppress Scrip If Actor is RT System Itself
Matt Brennan
brennanma at gmail.com
Mon Jan 7 17:24:20 EST 2013
Good day,
I have been trying to figure this one out for the last couple hours.
User creates a ticket in queue A. I then have a scrip set up to
automatically create a child ticket in a queue B if certain custom
field values are set. The child ticket ends up being created by "The
RT System Itself," which is mostly fine. Subsequently, depending on
certain values, a second child ticket may be created. With the
creation of all three, each is sending an autoreply (as it should be,
since a ticket created in queue B by itself should). The issue is, I
don't want the user to get three auto replies if RT creates child
tickets.
I tried added this to the beginning of my "On Create Autoreply To
Requestors" scrip (condition was set to user defined):
return 0 if ( $self->TransactionObj->CreatorObj->PrincipalObj eq
$RT::SystemUser );
Any help is appreciated. The multiple autoreplies are currently
blocking me from going live with this configuration change.
Thanks,
Matt
More information about the rt-users
mailing list