hello everyone,Is there any chance to remove the owner when I transfer a ticket between departments?if I transfer a ticket with:Owner: EnricoDepartment: IT-SoftwareTo the IT-Service department (using "Transfer" button), I will have:Owner: EnricoDepartment: IT-ServiceBut I'd like to have:Owner: - Unassigned -Department: IT-Servicehere is my configuration:Server InformationosTicket Versionv1.10.1 (9ae093d)  Upgrade— This osTicket version is no longer supported. Please consider upgradingWeb Server SoftwareApache/2.4.18 (Ubuntu)MySQL Version5.7.21PHP Version7.0.28-0ubuntu0.16.04.1thanks in advance,enrico

Q: Is there any chance to remove the owner when I transfer a ticket between departments?A: No.Ticket owners are the person that the ticket was opened for (or who opened the ticket).  If you changed this how would you know who to respond to?Or are you trying to say that you want the ticket to be unassigned?  Only a department manager can unassign a ticket.  Assigned is not the same as owner.

yes, sorry, with "owner" I meant the agent handling the ticket.Any way to have the ticket unassigned once it's transferred from one department to another?

... besides having it released by the department manager (ofc)

Nevermind, I sorted this out modifying ~/osticket/upload/include/class.ticket.phpif someone is interested:### modified function transfer:2002     function transfer(TransferForm $form, &$errors, $alert=true) {### after the department was changed 2017             $this->dept_id = $dept->getId();### I added a line to relase the ticket:2018             $this->unassign(); ### here are the first 20 lines of the function2002     function transfer(TransferForm $form, &$errors, $alert=true) {2003         global $thisstaff, $cfg;20042005         // Check if staff can do the transfer2006         if (!$this->checkStaffPerm($thisstaff, Ticket:))2007             return false;20082009         $cdept = $this->getDept(); // Current department2010         $dept = $form->getDept(); // Target department2011         if (!$dept || !($dept instanceof Dept))2012             $errors = __('Department selection required');2013         elseif ($dept->getid() == $this->getDeptId())2014             $errors = sprintf(2015                     __('%s already in the department'), __('Ticket'));2016         else {2017             $this->dept_id = $dept->getId();2018             $this->unassign(); //to release the ticket after department is changedenrico

4 years later
Write a Reply...