Skip to main content
Version: ADONIS 12/ADOIT 13

Retrieve artifacts related to a risk

This article shows how to use the ADOXX API to retrieve an object's outgoing or incoming relations of a certain type.

The snippet below will retrieve the relations from other objects that point to a risk whose ID we already know (e.g. retrieved via a search query).

note

The snippet below uses Basic Authentication.

Replace the values in angle brackets with values that fit your setup, e.g. instead of <HOST> use the host at which you access your ADOXX instance.

Click to view the code!

Source Code

Loading code...

The result should look similar to the following:

Status Code: 200
Result:
{
"locale":"en",
"rest_links":[ ... ],
"relations":
[
{
"rest_links":[ ... ],
"from":
{
"rest_links":[ ... ],
"id":" ... ",
"metaName":" ... ",
"name":"sourceObject",
"type":" ... ",
"artefactType":"REPOSITORY_OBJECT"
},
"to":
{
"rest_links":[ ... ],
"id":" ... ",
"metaName":"C_RISK",
"name":"myRisk",
"type":" ... ",
"artefactType":"REPOSITORY_OBJECT"
},
"attributes":[ ... ]
}
]
}