How to change the properties of a ticket

I need that when changing the queue of a ticket the state automatically changes to new and the owner to nobody. How can I do this?

You can create a scrip (Admin->Scrips->Create) and set the status to “On queue change” then have an action of “user defined”. In the user defined commit code box you can set the owner to the NoBody user $self->TicketObj->SetOwner( RT->Nobody->UserObj->Id ); and also set the ticket status to new using the SetStatus method.

2 Likes

Thanks for your answer. I was able to change the owner, but it doesn’t work for me to change the status to new. Could you tell me the code to do it?

What is the code that you are running in the scrip to change the status?