AQL to search for object having inboundreference (objecttype / attribute)

Bastien Delourmel
Contributor
November 15, 2023

Good morning, 

 

I am looking for an AQL that retrieve objects depending on its Inboundreferences.

 

I have those custom fields:

- Order Template Name (id: 10131) - which shows Template Name assets

- Template Product Name (id: 10133) - which shows Products assets

 

Products object have Inboundreferences to Order Templates object

 

What I want to see from my create screen are Products that are related to Template Product previously selected. 

First I tried my AQL on asset, making sure it is workingAQL on Asset.png

 

Then I tried by replacing "Fitness" by {$customfield_10131}, but doesn't work. Even tried with Key IN or Key = 

Asset custom field AQL.png

Anyone has an idea?

 

Thanks for your help,

1 answer

1 accepted

7 votes
Answer accepted
Bastien Delourmel
Contributor
November 15, 2023

Resolved it, I had to use "objectId ="

->  object HAVING inboundReferences(objectid = ${customfield_10131})

Suggest an answer

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

Atlassian Community Events