Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

Count of object types underneath a parent object type

David Hart
Contributor
July 8, 2025

I Jira Assets you can create object types underneath other (parent) object types. However when I attempt to use AQL for this it yields no results, because all of the syntax I can come up with looks for the objects and not the object types.

Context:
In assets we track application licenses. We have several application types those would be the parent object types. Underneath those "Types" of applications we have each application, and we have a lot of them so I am attempting to get the count of the child object types and not a total count of objects.

Any assistance or comments are welcome. Thank you!

1 answer

1 accepted

1 vote
Answer accepted
Trudy P Claspill
Community Champion
July 8, 2025

Hello @David Hart 

Let me check if I understand your scenario.

Does the following Schema accurately represent your scenario?

Object Type: "Application Type"
|-- Object Type: "Application 1"
|-- Object: License 1.1
|-- Object: License 1.2
|-- Object Type: "Application 2"
|-- Object: License 2.1
|-- Object: License 2.2
|-- Object Type: "Application 3"
|-- Object: License 3.1

And you want a query that will get "Application 1", "Application 2", and "Application 3", resulting in a total of 3 Object Types that are children of the Object Type "Application Type".

Is that correct?

David Hart
Contributor
July 8, 2025

@Trudy P Claspill This is exactly correct! I am attempting to get a count of all the "Applications" listed in your exampled.

Like • Trudy P Claspill likes this
Trudy P Claspill
Community Champion
July 8, 2025

I have to concur with your findings. AQL is used to get Objects, not Object Types.

It might be possible to use the API. I haven't been able to quite work out the details yet.

https://developer.atlassian.com/cloud/assets/rest/api-group-objectschema/#api-objectschema-id-objecttypes-get

David Hart
Contributor
July 9, 2025

This doesn't seem to be the best route for us to use. I will have to find another way, Thank you so much for your assistance! 

Like • Trudy P Claspill 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

Atlassian Community Events