How Can we Restrict Ticket By Team In Helpdesk

Hello,

how can we mange ticket by team.

first when anyone create a ticket its show only one support team and this team can assign ticket to other releted team.

and if i have two team sales and technical and support.
when new ticket raised by user its only show to support team and support team read this and pass to releted team like sales or technical and if assign to technical then sales team will not able to see this ticket.

i try to restrict ticket by using user role permission and restrict ticket by team check box in HD Setting.
image

how can i map this flow in frappe helpdesk

Did you get it working ??

No, i done after writing my custom code