Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Insight IQL filter by Object Schema

Dieter Gasser
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 14, 2020

Hi all,

I am using two Object Schemas in Insight, both of them contain an Object Type with the same name.

I expose objects through a custom field to Jira. For this, I am using an Asset Type Configuration with the following IQL definition:

objectType="Software Asset"

This returns all objects of type "Software Asset" from both schemas.

How can I create an IQL query that filters by object schema so that only Software Assets of one schema are returned?

Any hint is greatly appreciated.

Regards,

Dieter

2 answers

1 accepted

2 votes
Answer accepted
Hakan Bahadir
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 15, 2020

 

Hello,

 

You may also filter according to the Object Type ID. For example IQL can be: 

objectTypeId IN (99)

Insight Cloud IQL documentation has more examples.

You can find the Object Type ID for your "Software Asset" on the Object Type configuration page.

(Using ID's is also better then Names. Because Object Type Names may be changed in time and that would mean an update for all IQLs.)

 

FYI

Hakan Bahadir

Solutions Engineer

Dieter Gasser
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 15, 2020

Hi Hakan, thanks so much for the reply, this fixed my problem. It's a shame I didn't notice this option myself :)

Like Hakan Bahadir likes this
0 votes
omar infante December 15, 2020

I am also running into this exact same issue as Dieter, on Jira Cloud. I have to schemas and both include an Object Type named "Hardware." Any insight (no pun intended) would be greatly appreciated.

Thanks!

Omar

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events