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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

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
4,556,504
Community Members
 
Community Events
184
Community Groups

Insight: How can I get an inbound attribute query result to show only one object?

Edited

Hello, 

     We're trying to create a list of Users that have out of warranty laptops so we can create a Jira ticket for the user to order a new machine.

We have assets assigned to Users and not Users assigned to assets. Some Users have multiple laptops therefore we need an accurate count of how many users have laptops assigned to them. We can go into the Users object group and do an inbound reference query

objectType = "Users" and object HAVING inR(Equipment="laptop") 

This works perfectly.

Now we need to drlll down to laptops that are not under warranty. We want machines that the warranty has expired over a year ago.

objectType = "Users" and object HAVING inR(Equipment = "laptop" and "Warranty Expires"  < now(-365d)

This query does work but still shows Users that have another laptop that is under warranty.  

How can I get the query to only show me names of Users with out of warranty equipment? If they have another laptop under warranty, we do not want them on the list.

 

 

2 answers

1 accepted

1 vote
Answer accepted
Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 11, 2023

Hi there!

If I get your Insight model correctly I think following should do the trick. Let's say we identify equipment still under warranty as 

"Warranty Expires" > now()

Then we coudl extend your IQL as follows:

objectType = "Users" and object HAVING inR(Equipment = "laptop" and "Warranty Expires"  < now(-365d)
and object NOT HAVING inR(Equipment = "laptop" and "Warranty Expires" > now())

This way we ask for the users that have a link with a warranty expired laptop and NOT having a link with a laptop still under waranty

 

Hope this helps!

Jeroen

Thanks Jeroen, I played around with it and found that exact same query!

I have a similar ask but have one question. The Equipment is that the name of the schema or the Reference name? 

Jeroen Poismans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 21, 2023

Hi!

In this example "Equipment" would be the attribute on the inbound referenced object.

You are literally looking for "User that have an asset linked of tEquipment laptop and where the warranty has expired over a year ago"

Jeroen

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events