1. Kayako Download customers: we will continue to develop and support Kayako Download beyond July 2017, alongside the new Kayako for existing customers.

    Find out more.

  2. The forum you are viewing relates to Kayako Classic. If you signed up or upgraded to the new Kayako (after the 4th July 2016), the information in this thread may not apply to you. You can visit the forums for the new Kayako here.

Using the PHP api to remove the owner of a ticket.

Discussion in 'Using Kayako Classic' started by Tinkerer, May 11, 2018.

  1. Tinkerer

    Tinkerer New Member

    Hi:

    Our team needs to use the Kayako PHP API to remove the owner of tickets, so they remain unnasigned. We have been successful in changing many other parameters, such as the status, but ticket ownership remains elusive.

    We have tried:

    $ticket=\kyTicket::get($ticket_id);
    $ticket->setOwnerStaffId(0)->save();

    We have also tried to set the owner staff id to -1 and null, or even to call setOwnerStaff with null. None of them have worked.

    Is it possible to achieve what we need?

    Thanks.
     

Share This Page