[rt-users] Custom actions in scrips
Tony Arnold
tony.arnold at manchester.ac.uk
Wed Dec 16 12:04:32 EST 2015
Matt,
Thanks. I thought it may come down to what you suggest.
Regards,
Tony.
On 16/12/15 14:17, Matt Zagrabelny wrote:
> 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
> above.
>
> For each create scrip you'll need something like the following in your
> custom condition:
>
> ($self->TransactionObj->Type || '') eq 'Create')
> &&
> (! $IS_SENDER_BLACKLISTED)
>
> -m
>
--
Tony Arnold, IT Security Analyst, University of Manchester.
T: +44 (0) 161 275 6093, F: +44 (0) 705 344 3082,
M: +44 (0) 773 330 0039, E: tony.arnold at manchester.ac.uk
More information about the rt-users
mailing list