Missed Team ’24? Catch up on announcements here.

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

IQL - Exact match with lists

Thomas Scheibelhofer March 23, 2021

Hi,

i'm currently trying to write a script which determines the security level of a given Request upon creation based on the settings of an insight field.

Now i'm running into the issue that when using IQL I have no means of checking a list for an exact match.

For example, even with the IQLs

"Teams" == BUSIT AND "Teams" == DEVSUPP

"Teams" IN ("BUSIT","DEVSUPP")

I will still get additional objects, as e.g. there is also one object that has these two in the list, but on top of that a few others as well.

Best regards
Thomas

2 answers

0 votes
David Sumlin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 23, 2021

Sometimes helps to reindex the objects also if the results don't seem to be matching your IQL.

0 votes
Joshua Sneed Contegix
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 23, 2021

Hi Thomas,

I would start by reviewing the IQL documentation and looking into the available Operators. Assuming you have done/will do that, you may need to use the IN and NOT IN operators to bookend the exact results you would like. Cheers!

Thomas Scheibelhofer March 23, 2021

Hi Joshua,

yeah, i worked with IQL for a few years now and just never had the need of exclusivity.

A combination of IN and NOT IN might work if i'd know all the values beforehand, which I'm not going to have.

My current approach is to get a list of all objects which might fit and then compare the lists directly in groovy, but somehow that seems very tedious for a simple comparison.

Best regards

Thomas

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events