On Fri, Jun 7, 2013 at 12:13 AM, Landon <[email protected]> wrote:
> 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? > yes, use SQL to check: select Description from Scrips order by Description; [RTIR] prefix is also accounted, so you have to know where DB places it while sorting. > > > On 6 June 2013 13:09, Ruslan Zakirov <[email protected]> wrote: > >> >> >> >> On Thu, Jun 6, 2013 at 11:06 PM, Landon <[email protected]> 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 <[email protected]> >>> >>> >>> >>> -- >>> RT Training in Seattle, June 19-20: http://bestpractical.com/training >>> >> >> >> >> -- >> Best regards, Ruslan. >> > > > > -- > Landon Stewart <[email protected]> > -- Best regards, Ruslan.
-- RT Training in Seattle, June 19-20: http://bestpractical.com/training
