We had a need to show Team Tickets in the My Tickets tab. I made a small change that seems to fill this need.
Find this code in /include/staff/tickets.inc.php :
$results_type='Assigned Tickets';
$qwhere.=' AND ticket.staff_id='.db_input($staffId);
$showassigned=false; //My tickets...already assigned to the staff.
and replace it with this code:
$results_type='Assigned Tickets';
$qwhere.=' AND (ticket.staff_id='.db_input($staffId). ' or (ticket.team_id in (select team_id from '.TEAM_MEMBER_TABLE.' where staff_id ='.db_input($staffId).') and ticket.staff_id=0))';
$showassigned=true; //altered so that it shows the assigned user so that we can tell the difference between team assigned and staff assigned.
I'm currently using v1.7.0. Use with caution.