Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Insight API returns duplicate references

Arne Altrichter
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 3, 2022

The GUI as well as the API of Jira insights returns duplicate information. If we query for a person that has two references to the same team (e.g. member and supervisor) Insights returns all information twice. 

url: https://server/rest/insight-am/ID/assets/KEY/outboundreferences

{
"metadata": {
"count": 2
},
"results": [
{
"objectType": {
"id": 12,
"name": "Team"
},
"referenceObject": {
"id": 123,
"label": "Team A",
"objectKey": "key-123",
"avatarUrl": "/icon/202/icon.png"
},
"referenceTypes": [
{
"id": 34,
"name": "belongs to",
"color": "597AB1"
},
{
"id": 35,
"name": "is responsible for",
"color": "0A93E5"
}
],
"metadata": {
"group": "Team"
}
},
{
"objectType": {
"id": 12,
"name": "Team"
},
"referenceObject": {
"id": 123,
"label": "Team A",
"objectKey": "key-123",
"avatarUrl": "/icon/202/icon.png"
},
"referenceTypes": [
{
"id": 34,
"name": "belongs to",
"color": "597AB1"
},
{
"id": 35,
"name": "is responsible for",
"color": "0A93E5"
}
],
"metadata": {
"group": "Team"
}
}
]
}

0 answers

Suggest an answer

Log in or Sign up to answer