[rt-users] Custom actions in scrips

Matt Zagrabelny mzagrabe at d.umn.edu
Wed Dec 16 09:17:24 EST 2015

On Wed, Dec 16, 2015 at 5:52 AM, Tony Arnold
<tony.arnold at manchester.ac.uk> wrote:
> I'm writing a scrip (using the web interface) where I want to test who
> has sent a ticket and automatically reject it. (These are automatic
> response tickets from another ticketing system, viz., LANdesk. The
> tickets in question are merely acknowledgement of receipt and contain no
> useful information what so ever!)
> I think I know how to do this but I also want to stop another scrip from
> notifying the watchers on the queue. Is this possible?
> I'm on an old version of RT (3.8.14) so maybe this is easier to do in
> later versions.
> Any advice?

I think you'd need to bolt the custom reject logic onto each scrip
that fires for "On Create" and also create the scrip you reference

For each create scrip you'll need something like the following in your
custom condition:

($self->TransactionObj->Type || '') eq 'Create')


More information about the rt-users mailing list