So, assign can be done for example by entering Staffresponse in a ticket?
You need to edit class.ticket.php
//Insert Staff Reply
function postResponse($msgid,$response,$signature='none',$attachment=false,$canalert=true){
global $thisuser,$cfg;
if(!$thisuser || !$thisuser->getId() || !$thisuser->isStaff()) //just incase
return 0;
$sql= 'INSERT INTO '.TICKET_RESPONSE_TABLE.' SET created=NOW() '.
',ticket_id='.db_input($this->getId()).
',msg_id='.db_input($msgid).
',response='.db_input(Format:($response)).
',staff_id='.db_input($thisuser->getId()).
',staff_name='.db_input($thisuser->getName()).
',ip_address='.db_input($thisuser->getIP());
$resp_id=0;
// INSERT CODE HERE
if(db_query($sql) && ($resp_id=db_insert_id())):
replace line INSERT CODE HERE WITH:
//@Modification - Assign automatically to the respondent
$sql1='UPDATE ost_ticket SET `staff_id` = '.$thisuser->getId().' WHERE ticket_id = '.$this->getId();
$sql1_qry=db_query($sql1);