Hello everyone,
First of all, thank you for your time.
As you can see in the JIRA image in my schema tree, there are several categories of products (speakers, headphones, printers...).
From my java client using Unirest.get(url) I have no problems retrieving the schema categories using the following call https://api.atlassian.com/jsm/assets/workspace/ID-WORKSPACE/v1/objectschema/2 or If I want to recover a specific object I can use
https://api.atlassian.com/jsm/assets/workspace/ID-WORKSPACE/v1/object/ID-NUMBER
Viewing the image How can I retrieve the JSON list of all the objects in a category from Java? For example, how can I recover the JSON of the 290 Laser printers?
I have looked at the following documentation
https://developer.atlassian.com/cloud/assets/rest/ but I don't get what I want
thank you

welcome to the community and thanks for your question.
Your on the right track but I would recommend to use an aql search for getting the relevant objects.
Documentation can be found here: https://developer.atlassian.com/cloud/assets/rest/api-group-object/#api-object-aql-post
In the example code you will need to modify the payload in line 5 to
payload.put("qlQuery", "objectType = Laser"); }
Thanks for your answer. @Kai Becker
I tried to do what you told me but it gives me an error and I don't understand why since I am using the same code that comes in the api
https://developer.atlassian.com/cloud/assets/rest/api-group-object/#api-object-aql-post
I am attaching screenshots of the code and console output.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.