Can somebody help me with the appropriate API call to get attributes from an asset using the AQL?
I have a simple GET (below) that works exactly as expected:
https://api.atlassian.com/jsm/assets/workspace/[workspace-id]/v1/object/544534
However, when I try to change to a POST for the objects aql as documented here I get "Something went wrong. Contact Administrator". When I try the same as a GET I get "NotFoundInsightException: Could not find Object with key: aql"
https://api.atlassian.com/jsm/assets/workspace/[worskapce-id]/v1/object/aql?objectType=Users&"E-mail Address"=[email]
Hi @Mathew Lederman ,
I used this POST API call:
https://api.atlassian.com/ex/jira/<cloudID>/jsm/assets/workspace/<workspaceID>/v1/object/aql
JSON payload (body) is:
{ "qlQuery": "objectTypeId = 12345 AND \"Name\" = \"AssetNameXYZ\"", "includeAttributes": true}
This returned all matching assets with all attributes and their definitions.
@Peter Miklian what is "ex' and "jira' in your call? Can you share documentation behind this call?
It looks like you're new here. Sign in or register to get started.