You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
is there a way to force an IQL filter to return only one result (like a SELECT TOP 1 in SQL) ?
Thanks in advance.
Maybe you have seen the page already, but the documentation surrounding IQL is here: Insight Query Language
Your question is too vague for me to suggest anything yet, but maybe you can give a couple of direct examples of what you are hoping to achieve?
Off the top of my head, I can only think to suggest filtering with '>' (greater than)
I have a contact at Riada, so I'm asking them if this is a possibility!
thanks for your quick answer.
I have no real exemple, but imagine a custom field of Insight Object Type in Jira with a list of name or code. When clicking, it suggest the complete list of objects available in Insight.
What I need is to have only one (randomly or not) object available and not the complete list (like a top 1 in SQL).
Hey Xavier, my contact got back to me with the following:
It is not possible to perform a "return top results" query, but you can achieve something similar with filtering and in general configuration; this will impact all results, however - this is under "default number of objects fetched in custom fields"
Essentially what he is telling me here is that it's not possible to perform a smart query; the example I gave him is to return most popular device model from a list of all devices, which I felt loosely translated closely to what you were asking!
thanks for your assistance.
In fact, it seems the assignation works because the assignation took only the first object value.
thanks to you.