I got the solution over here
ost_ticket_event table over there log is maintained of
Assigned ticket
closed ticket
created ticket
along with staffid
,dept_id
, team_id
also we can obtain the timestamp
0
solved osticket staff id becomes 0 after closing the ticket