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
I have an object schema on Jira Assets like down below:
There are devices in object categories and these devices have an owner as an attribute. I want to make a search for a name (owner) to see all allocated devices that name has. One person can have a laptop, phone, and tablet. So I don't want to search each object type by one. How can I search for that owner's name in every object type to see all devices that one person has?
Hi @Özge Özgenç
objectType IN objectTypeAndChildren can be used to list more than one objectType when you do a search. But you'd still need to list all your "main" objectType I think.
Something like :
(objectType IN objectTypeAndChildren(Computers) OR objectType in objectTypeAndChildren("Mobile devices)) AND owner = "Name of the owner"
Let me know.
Have a nice day
FMX Solutions - Gold Solution Partner
I understand why ...
Unfortunately, your AQL query will only search on the objectType you are on.
Since you don't have a "main" folder under which all your different assets are placed, your query only search where you are.
So if you are on "Computers", the query will not search for Mobile devices.
You could recreate your structure to tuck all your assets under a main objectType that could be called "Assets". And do your search on the "Assets" objectType.
I tried to run the query from the main page of Assets where we se all our schemas but it doesn't seem to return any results ...
Same if I try to use the "Search objects" field in the schema (upper right).
What you could do too is to run the query using an Automation rule.
It could be a scheduled rule that send an email. The advantage of a scheduled rule is that you can run the rule manually when you want by going to the Automation rules section of JSM.
The rule would look like that :
The Lookup objects action would be the AQL query
And the last action would be "Send email"with something that could look like that :
Hope this helps.