myTeamTickets() JQL function

How to develop “Team[Team]” IN myTeamTickets() dynamic JQL function? The JQL functipon should be return currentUser()'s Team issues. A user can include multiple Teams.

I want to create one JSM Queue (My Team Issues) for this reason.