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
Next: Root
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
Hi all,
I've been trying to understand aqlFunction() and am unable to figure out why I can't limit the query to a single Schema or Object Type in the aql.
Here's the relevant details:
Users is the object type
Office Location is the attribute
Wellington is the attribute value I want to query for
Master Object Schema is the schema I want to query against
Reporter's Profile is the custom field which yields the corresponding Users object to match the issue Reporter
So using a JQL search, I'm trying to identify issues where the Reporter is in Wellington.
This one works fine: "Reporter's profile" IN aqlFunction("\"Office Location\" = \"Wellington\"")
This one yields nothing: "Reporter's profile" IN aqlFunction("Users.\"Office Location\" = \"Wellington\"")
I could use the first query, but it takes a couple of seconds to load only 170 results.
The documentation says I should try to be as specific as possible, so I thought I could limit the search to a single Object Type: Users. But I can't make it work the way that the examples here are supposed to work.
Can anyone please advise where I'm going wrong here?
Thank you!!!