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

Todd Chapman rt at chaka.net
Tue Jan 27 13:19:33 EST 2004


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;
$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)




More information about the rt-users mailing list