Using the REST call for Get object {id} referenceinfo shows all INCOMING relationships, but not outgoing. For example, if I have a desktop with monitors and keyboards attached, they show up as relationships in the graph, but when I hit the desktop with the rest api call, I don't see any related items. However, for the monitor, I do see the relationship for the desktop. How do I see all the related records for the desktop?
Hello @Eric Krueger _StrataCom_ Inc_ ,
Yes, you can do this by updating the reference attributes on the objects. I just tried this out using the PUT object API (https://developer.atlassian.com/cloud/insight/rest/api-group-object/#api-object-id-put).
To do this you'll need:
e.g. to update object "AB-123" to have an outbound reference to "CD-456" you'd call that PUT API with url
https://api.atlassian.com/jsm/insight/workspace/{yourworkspaceid}/v1/object/AB-123
with a body like
{
"attributes": [
{
"objectTypeAttributeId": "674",
"objectAttributeValues": [
{
"value": "CD-456"
}
]
}
]
}
To do this to update the "inbound reference" you'll need to update the attribute of the object you want to be a new inbound reference.
Similarly you can try it out with GET method
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.