Forums

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

Lookup objects order by

Kostiantyn Syvachenko
March 17, 2026

Hello everyone!

The automation generates a report on laptops by stock, sending it to email as an HTML table. I need to sort it by start date. But the start date is an object in a different asset  schema - employee. An object from the Employee schema to whom the laptop was issued. The employee schema has an attribute called Start Date. I want to organize it by that.

AQL query

objectType = Laptops AND "Asset Status" IN ("In Use", "In Stock") AND Stock = "{{userInputs.Stock}}" order by Assignee."Start Date" DESC

Sorting doesn't work 

1 answer

0 votes
Marc -Devoteam-
Community Champion
March 17, 2026

Hi @Kostiantyn Syvachenko 

You need to use the reference name of the attribute where you access the data from the other schema

See documentation on AQL, https://support.atlassian.com/assets/docs/use-assets-query-language-aql/#Ordering 

Kostiantyn Syvachenko
March 17, 2026

I think that's what I do

Hardware scheme

Screenshot 2026-03-17 at 12.10.22.png

Employee scheme

Screenshot 2026-03-17 at 12.14.32.png

The Assignee attribute in the equipment schema is linked to the employee object. Accordingly, Assignee.Start Date

Or did I miss something?

Marc -Devoteam-
Community Champion
March 17, 2026

Hi @Kostiantyn Syvachenko 

I think this should be Employees."Start Date" or Employee.Start Date

Kostiantyn Syvachenko
March 17, 2026

In this case, even the Lookup objects doesn't work...

Screenshot 2026-03-17 at 12.38.35.png

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