[rt-users] For RTIR are scrips ran before plugins? (namely lib/RT/Action/RTIR_FindIP.pm)
Landon
landonstewart at gmail.com
Thu Jun 6 16:13:54 EDT 2013
Oh ok that's good. So to confirm if I wish to ensure a scrip runs last I
could prefix the description with "z0 Description" or "z1 Description"?
Naturally adding a number first would probably make it run before all the
other scrips that start with alpha characters. Correct?
On 6 June 2013 13:09, Ruslan Zakirov <ruz at bestpractical.com> wrote:
>
>
>
> On Thu, Jun 6, 2013 at 11:06 PM, Landon <landonstewart at gmail.com> wrote:
>
>> Hello,
>>
>> As many of you know RTIR has three levels of tickets each with their own
>> queue. Reports come into "Incident Reports", incidents are created in
>> "Incidents" and investigations are created in "Investigations". I'm
>> attempting to write a scrip that looks at the IP field of a ticket created
>> in "Incident Reports" and searches for tickets in "Incidents". If it finds
>> one (or more) it'll create a HasMember link. If it doesn't I might make it
>> create an Incident with the text from the Incident Report.
>>
>> My question is when the scrips run the IP field appears to be empty at
>> the time it runs. Is this normal? What order do things happen in RT and
>> RTIR plugins? Can I tweak this order to ensure that the IP Custom Field is
>> populated via lib/RT/Action/RTIR_FindIP.pm before a scrip runs? Is the
>> only way to append the scrip to the end of RTIR_FindIP.pm?
>>
>
> In RT 3.8 and 4.0 scrips are executed in order of description. You can add
> digital prefix to description to adjust order.
>
>
>
>> Thank you.
>>
>> --
>> Landon Stewart <LandonStewart at Gmail.com>
>>
>>
>>
>> --
>> RT Training in Seattle, June 19-20: http://bestpractical.com/training
>>
>
>
>
> --
> Best regards, Ruslan.
>
--
Landon Stewart <LandonStewart at Gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130606/541f2649/attachment.htm>
More information about the rt-users
mailing list