Getting a list of tickets from $self->TicketObj->Merged?

Hi,

How would I go about getting an actual list of tickets from
$self->TicketObj->Merged ?
It returns an integer which seems to be the amount of tickets that has
been merged into the actual ticket but it doesn’t seem to return a
list that I can run through.

I’ve tried going through “Merged” with ->Next but I get an error:
Commit failed: Can’t call method “Next” without a package or object reference

The documentation says the following:
:/opt/rt3/lib/RT# perldoc Ticket_Overlay.pm |grep merged -a2
Merged

   Returns list of tickets' ids that's been merged into this ticket.

Any ideas ?

Thanks,

  • David

David,

Merged tickets have an “EffectiveID” that isn’t the same as the"ID". It is
also in the link table as a Type = “MergedInto”.
So, if you’re using SQL, that should do it fo ryou.

Kenn
LBNLOn Wed, Sep 29, 2010 at 8:31 AM, David fooraide@gmail.com wrote:

Hi,

How would I go about getting an actual list of tickets from
$self->TicketObj->Merged ?
It returns an integer which seems to be the amount of tickets that has
been merged into the actual ticket but it doesn’t seem to return a
list that I can run through.

I’ve tried going through “Merged” with ->Next but I get an error:
Commit failed: Can’t call method “Next” without a package or object
reference

The documentation says the following:
:/opt/rt3/lib/RT# perldoc Ticket_Overlay.pm |grep merged -a2
Merged

  Returns list of tickets' ids that's been merged into this ticket.

Any ideas ?

Thanks,

  • David

RT Training in Washington DC, USA on Oct 25 & 26 2010
Last one this year – Learn how to get the most out of RT!

Dear All,

We are at RT3.8.7 using external authentication (LDAP) managed by a
different department. Is it possible to use an email address for
Username, instead of uid? If yes, what needs to be changed? Or, do we
need to set the uids to an email address in LDAP server? Our
RT_SiteConfig.pm for LDAP is:
‘type’ => ‘ldap’,
‘auth’ => ‘1’,
‘info’ => ‘1’,
‘server’ => ‘siteldap.triumf.ca’,
‘base’ => ‘o=triumf’,
‘filter’ => ‘(objectClass=inetOrgPerson)’,
‘attr_match_list’ => [ ‘Name’,
‘EmailAddress’,
‘RealName’, ],
‘attr_map’ => { ‘Name’ => ‘uid’,
‘EmailAddress’ => ‘mail’,
‘RealName’ => ‘cn’,

Your replies are greatly appreciated in advance.

Cheers,
Hossein

_____ _____ _____ _ _ _ _ ____ Hossein Rafighi
|_ || _ \ | || | | || _/ || __|TRIUMF, 4004 Wesbrook Mall
| | | |
| ) | | | | | || || |__ Vancouver BC, Canada, V6T 2A3
| | | _ / | | | _/ || _/ || |Voice: (604) 222-1047
| | | | \ \ | | | || | | || | Fax: (604) 222-1074
|| || _|
_| _/ || |||_| Website: http://www.triumf.ca