Thx for that tidbit of info,
In that file I found the correct syntax, out of Sean’s set, the 2 below will work,
But, this is baffling me…
This is my scrip
Condition: On Queue Change
Action: User Defined
Custom action Preparation Code:
set new Ticket Owner value
my $ticket = $self->TicketObj;
Based on the above investigation, I know the syntax is correct for the SetOwner. However, the only thing that happens on queue change is the ticket’s status is set to new. That shows up in the ticket history. The SetOwner doesn’t show up at all, nothing happens.
This is the exact same spot Sean got stuck… and the thread ended…
Ken Crocker(thx Ken) provided the above code + 1 line (return 1;) and said his is in the cleanup code spot. If I put that code in there, absolutely nothing gets changed in the ticket…
Any thoughts anyone?
Northern Ontario School of Medicine
955 Oliver Road
Thunder Bay, ON P7B 5E1
Technology assistance: email firstname.lastname@example.org
Technology Emergency Contact (TEC) Mon-Fri, 8am to 5pm excluding stat holidays:
Off campus toll free 1-800-461-8777, option 8, or locally either
(705)-662-7120 or (807)-766-7500
Kevin Falcone email@example.com 24/09/2009 5:06 pm >>>
I was looking through the list’s history.
The original email did not get an answer to it.
The piece that interests me about this listserv topic(dating back to Aug 2007)…
Sean, and myself are trying to set a ticket’s owner to nobody on an action…
$self->TicketObj->SetOwner(Name => “Nobody”);
$self->TicketObj->SetOwner(Name => Nobody);
$self->TicketObj->SetOwner(Id => “10”);
$self->TicketObj->SetOwner(Id => 10);
None of these has worked and nothing in rt.log indicates any problems. I have
it set up with debug so I know I’m getting as much info as I can.
If you want as much information as possible, you should check the
return values of SetOwner. The arguments for the SetOwner method are
documented in Ticket_Overlay.pm.