Hello
I currently try to integrate CloudForms with Ansible with Jira or rather Insight running in Jira.
Use Case:
I created an object type called "T-Shirt Sizes". The object type contains around 10 attributes for instance number of CPUs or Memory.
The I created some objects for that type and maintained the attributes accordingly.
Via REST I want to call Insight now and retrieve all T-Shirt size objects with their attributes.
Issue 1:
Firstly the response is pretty difficult to read. Is there an easy way to get a kind of JSON formatted response?
Issue 2:
I can only call the object type T-Shirt size and will get the available objects. But then I would need to trigger another call per object to retrieve the attributes. As we have around 60 T-Shirt sizes, I would call Jira / Insight 61 times. First the object type to get all object IDs. And then per object ID to get the accordant attributes.
Is there not a better way to handle this in one shot?
Thanks and Regards
Sebastian
Hi Sebastian.
Thank you for clarifying the Use Case.
I think you might benefit from using the REST Call:
POST: /rest/insight/1.0/object/navlist/iql
Documented under "Find Objects (Advanced)" in our documentation.
The response will include All Objects according to your POSTed JSON and IQL, including Attributes and their respective Values.
Please let us know if you require additional information.
Kind regards,
Yinon
Team Riada
Hi Yinon!
Regarding to you answer...
I would like also ask that is there any access ( via REST) to list of saved "quick search" ?
Unfortunately, I did not find it in the documentation.
Regards,
Mik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mik.
In order to execute a Quick search, you should be calling an IQL REST API, and for your IQL parameter - indicate: "anyAttribute LIKE \"your search string\""
(click the Hyperlincs for more infomation :) )
Kind regards,
Yinon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yinon,
Thanks a lot for quick answer!
I think you we misunderstood. Sorry if I explained this not enough.
I made some researching and found this (in the chrome console):
/rest/insight-am/1/filters
I need to get a list of saved filters.
Kind regards,
Mik
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.