Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

Assets: how to setup AQL to get parent objects

Bernd Anderer
Contributor
June 23, 2023

I have an Object Scheme called OS.


In that OS I have an Object called Company (Parent Object) and an Object called Employee (Child Object).


They are connected, so that I can see the Company Object in each employee.
Each employes Object has his Jira User as an attribute.

What I want to do is this:
When the user (Employee) creates a new Issue in Jira, the Company field, filters the values based on the reporter's user account (= Employee Jira User)

I know how to setup the customfields. What I am struggeling with are the AQL filters. 

How do I filter the Companies that are linked to the reporter?

 

Thanks in advance

Bernd

1 answer

1 accepted

1 vote
Answer accepted
Evgenii
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 23, 2023

Hi, @Bernd Anderer 

If you want to find Company, linked to Employee, you have to use such AQL:

objectType = Company AND object HAVING outR(objectType = Employee AND Key = TST-12345)

Bernd Anderer
Contributor
June 23, 2023

Thank you for the tip.

I played around a while and found a solution. In my case it was an inbound relation.

So your answer did bring me on the right track :-)

 

Thank you

Like Evgenii likes this

Suggest an answer

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

Upcoming Jira Service Management Events