[rt-users] Why doesn't this scrip code work?

AJ rt at musefoundry.com
Tue Jan 27 17:17:10 EST 2004


To get a good understanding of base and targets, look at the Links table
with some kind of graphical database table viewer like phpadmin.  That will
explain just everything you need to know about how the base, target, and
type structures and methods work.

A.J.


-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Todd Chapman
Sent: Tuesday, January 27, 2004 1:29 PM
To: Jesse Vincent
Cc: rt-users at lists.fsck.com
Subject: Re: [rt-users] Why doesn't this scrip code work?

It would help if someone could extend my understanding of bases
and targets.

Also, I lost the link to the RTFM for RT3. Anyone?

Thanks for the help Jesse and all!

-Todd

On Tue, Jan 27, 2004 at 02:12:51PM -0500, Jesse Vincent wrote:
> 
> 
> 
> On Tue, Jan 27, 2004 at 01:19:33PM -0500, Todd Chapman wrote:
> > Ticket #152 is a Child of Ticket #151.
> > 
> > I created an On Correspond scrip with this preparation code:
> > 
> > my $Ticket = $self->TicketObj;
> > $RT::Logger->debug("Ticket ID: " . $Ticket->id);
> > my $members = $Ticket->MemberOf;
> > my $link = $members->First;
> > my $parent = $link->BaseObj;
> 
> 
> Ticket is a MemberOf *. You want to look at targets, not bases
> > $RT::Logger->debug("BaseObj ID: " . $parent->id);
> > 
> > 
> > I would expect BaseObj ID to be 151. Not so. The Ticket
> > ID and BaseObjID print as 152.
> > 
> > What am I missing?
> > 
> > Thanks! 
> > 
> > -Todd (RT 3.0.8)
> > 
> > _______________________________________________
> > rt-users mailing list
> > rt-users at lists.bestpractical.com
> > http://lists.bestpractical.com/mailman/listinfo/rt-users
> > 
> > Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
> > 
> 
> -- 
> http://www.bestpractical.com/rt  -- Trouble Ticketing. Free.
_______________________________________________
rt-users mailing list
rt-users at lists.bestpractical.com
http://lists.bestpractical.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm




More information about the rt-users mailing list