Info | ||
---|---|---|
|
Imagine we have the following structure in Jira Insight database for our assets
We have hosts and connected devices, where connected devices belong to a certain host and we want to have a form in ConfiForms which will list us all the hosts and devices and will make the list of devices dependent on the selection made in hosts field.
This is totally possible with ConfiForms app for Confluence.
And here is how it can be done.
We use "Insight objects dropdown" field in ConfiForms
And setup the fields to show the objects of a "hosts" and "devices" types
This is done by setting up a proper type ID in the "Insight Object Type ID" parameter
Object type id you can see inside Insight in Jira
You can see it's id in the detailed view
To make the fields dependent you need to understand how they are linked in Insight
You need to see the attributes and it's ID's, as we will need to make our filtering based on correct attribute
And looking at how "Devices" are linked to "Hosts"
Now we need to check how the REST API call looks like for the particular device to see how the data looks like. As integration between ConfiForms and Riada's Insight is done through the REST APIs
We will call the following REST API service
Code Block |
---|
/jira/rest/insight/1.0/object/3 |
to load the structure for our device (which has ID = 3).
Unfortunately the JSON structure returned by Riada's Insight is not very user friendly, but contains the data we need and can be understood by ConfiForms, which is great.
Expand | ||
---|---|---|
| ||
|