Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Complex IQL question

Derek Fields Community Leader May 23, 2019

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?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Asked in Jira Service Desk

Calling all Insight users, we need your help!

Hello Insight users,  As part of our (Mindville's) acquisition by Atlassian, our training team is looking to build some new Insight training materials. It would really helpful if you can ...

52 views 0 0
View question

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you