[rt-users] SetStatus and SetOwner scrip question

Ken Crocker kfcrocker at lbl.gov
Thu Sep 24 17:14:55 EDT 2009


Mike,

We use this for when a ticket is moved to another Queue:

# set new Ticket Owner value
my $ticket = $self->TicketObj;
$ticket->SetStatus("new");
$ticket->SetOwner(10, 'Force');
return 1;

The above code is put into the cleanup code. Hope this helps


Kenn
LBNL


On 9/24/2009 1:02 PM, Mike Johnson wrote:
> 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...
>  
> He stated,
>  
> I've tried:
>
> $self->TicketObj->SetOwner("Nobody");
> $self->TicketObj->SetOwner(Nobody);
> $self->TicketObj->SetOwner("10");
> $self->TicketObj->SetOwner(10);
> $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.
>  
> Can anyone tell me which of the above? and what else do I need to set 
> to make this happen on a specific condition(I'm using On Queue change).
>  
> Mike Johnson
> Datatel Programmer/Analyst
> Northern Ontario School of Medicine
> 955 Oliver Road
> Thunder Bay, ON   P7B 5E1
> Phone: 807.766.7331
> Email: mike.johnson at normed.ca <mailto:mike.johnson at normed.ca>
> Technology assistance: email nosmhelpdesk at normed.ca 
> <mailto:nosmhelpdesk at normed.ca>
> 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
> ------------------------------------------------------------------------
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20090924/d781cc32/attachment.htm>


More information about the rt-users mailing list