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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

IQL to compare attribute in object to Attribute in referenced object

I'd like to be able to run an IQL Query to determine where i have mismatched attribute values between referenced objects. 

I have a Monitor object, and a Computer object. 

I have a query which returns all Monitors that have a Computer linked to them as an inbound reference. 

object HAVING inboundReferences(objectType = Computer) AND objectType = Monitor


I want to be able to add a comparison clause to say of those 'linked assets' also  " where name != name"

so only show me monitors which are linked to a computer, but where the site name doesnt match the computer site name. 

1 answer

I have exactly the same problem, where I need an IQL to return all computer objects where the department attribute doesn't match the referenced user objects department field. Tying to use dot notation as per the documentation doesn't seem to work:

ObjectType = Computer AND Department != "Users.Department"

Any suggestions would be gratefully recieved

Following the format a little closer as stated in the advanced IQL searching docs, as far as I can tell the query should be:

<parent referenced attribute name>.<attribute in the referenced object> <operator> <value>

So in my case with the parent attribute being "Primary User" (referenced to the users object) and the attribute in the users object being Department. And the value being the Department field in my parent object:

"Primary User".Department != Department

This however still returns objects where the parent Department matches the referencesd primary users Department.

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events