Vivek: Looking at log output made me realize that $Owner does not contain the name of the owner. Where is the actual owner name stored as a string? I want to compare that string to Nobody. This seems like it should be fairly simple but I don't understand enough about how RT works internally to figure that out.
my $admincclist = $self->TicketObj->AdminCc; my $Owner = $self->TicketObj->OwnerObj; if ( $Owner->Id ne "Nobody"){ $admincclist->AddMember($Owner->Id); } Vivek Khera wrote: > On Mar 14, 2008, at 2:25 PM, John Arends wrote: > >> Second, is there a good way to debug scrips? I feel like I'm just >> feeling around in the dark and don't know how to tell if they're >> really >> working, or what the contents of variables are, etc. If I was writing > > sprinkle your scrip with lines like this: > > $RT::Logger->error("Got a create transacation..."); > > and look in your RT logfile. > _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com