Forums

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

Attribute "total" is missing from assets rest api aql

Loucas Stylianou
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 6, 2025

Hi,

 

We have a variety of jsm integrations with our product and for the last week we have been receiving errors relevant to a missing property/attribute from the json response of the following endpoint /jsm/assets/workspace/{workspaceId}/v1/object/aql

Based on the below documentation attribute total is part of the response payload but seesm that somethings has changed recently.

https://developer.atlassian.com/cloud/assets/rest/api-group-object/#api-object-aql-post

 

We have observed that the "total" property is missing and another attribute named as "last" is part of the response payload but it is not documented in the link listed above.

See the screenshot below.

jsm_assets_response_payload.png

Can you please let us know if this is a bug or a recent code change from your side ? 

1 answer

0 votes
Mikael Sandberg
Community Champion
May 6, 2025

Hi @Loucas Stylianou

Welcome to Atlassian Community!

You may want to post your question in the developer community or contact Atlassian support. Atlassian has done some maintenance to Assets that cause some issues in Automations, this could be a similar case.

Regarding last, that has to do with pagination, but I know in the past that there was an issue with it not being set. 

Loucas Stylianou
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 6, 2025

Hi @Mikael Sandberg ,

 

Thanks for your response, i will post it to the developer community.

Relevant to attribte last you shall see in the picture attahced that there is another property named as isLast which i guess is the same prop with different name. If you check the documentation you will notice that isLast is part of the attributes that we should expect.

 

Like Mikael Sandberg 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