Overriding RT::Tickets built-in limit of main.EffectiveID == main.id

[Pardon me if this is the wrong place for this - I asked on rt-users a
few days ago but had no response]

Is there any way to override the RT::Tickets SearchBuilder’s default
Limit of main.EffectiveID = main.id? I’m writing a SearchBuilder
script where I would benefit from being able to directly retrieve
tickets that have been merged into other tickets. I’ve been perusing
the perldoc for RT::Tickets_Overlay but wasn’t sure if any of those
methods would do the trick.

Thanks,
Fran

Fran Fabrizio, Senior Systems Analyst
UAB CIS - http://www.cis.uab.edu/
205.934.0653

I think the following should do the trick:

$tickets->{‘looking_at_effective_id’} = 1;

You have to do this before any call that can fetch records from the DB.On Wed, Jun 17, 2009 at 7:10 PM, Fran Fabriziofran@cis.uab.edu wrote:

[Pardon me if this is the wrong place for this - I asked on rt-users a
few days ago but had no response]

Is there any way to override the RT::Tickets SearchBuilder’s default
Limit of main.EffectiveID = main.id? I’m writing a SearchBuilder
script where I would benefit from being able to directly retrieve
tickets that have been merged into other tickets. I’ve been perusing
the perldoc for RT::Tickets_Overlay but wasn’t sure if any of those
methods would do the trick.

Thanks,
Fran


Fran Fabrizio, Senior Systems Analyst
UAB CIS - http://www.cis.uab.edu/
205.934.0653


List info: The rt-devel Archives

Best regards, Ruslan.