I am trying set up a Service Desk portal with an Insight field called "Company". The Company field has a list of Contacts (User).
I need to limit the list of Companies that show on the portal to only those that are associated with the User. This is straightforward to do.
The IQL to accomplish this would be
Contacts HAVING currentUser()
The complicated part is that if the currentUser() is an Agent (in the jira-servicedesk-users group), they should be able to see ALL of the companies in order to select the one that they want to associate with the ticket.
I have tried
(Contacts HAVING currentUser()) OR (group("jira-servicedesk-users") HAVING currentUser())
This results in a syntax error.
How would I do something like this?