I did exactly that the other day as part of setting up a role for an external vendor.
Go to Roles and Permissions
Select the relevant role (Service Desk Analyst)
Go to Object Permissions
Find Incident, click on the last Edit in the column. (Access column)
Add a condition for Update and View records where OwnerTeam is $(CurrentUserTeamNames())
Save and refresh.
Thanks for help.
But in my environment (On Premise 2017.3), there is no field that allow me to modify as per your setting.
Below is the available Object Permission setting in my environment: