-
Story
-
Resolution: Done
-
Normal
-
None
-
None
-
3
-
False
-
-
False
-
Konflux
-
-
-
3
When creating an issue with links, the links association is not preloaded like the other associations, so they get returned null:
{
"id": "a501c4e0-b10c-4fa1-91e0-50aaf7ed9fdd",
"title": "Test PR",
"description": "Testing this API before submitting PR",
"severity": "critical",
"issueType": "test",
"state": "ACTIVE",
"detectedAt": "2025-08-07T18:01:41.491844Z",
"resolvedAt": null,
"namespace": "default",
"scopeId": "4dda70ee-be0f-4fd0-b9c9-c8ce76fc6d76",
"scope": {
"id": "4dda70ee-be0f-4fd0-b9c9-c8ce76fc6d76",
"resourceType": "component",
"resourceName": "pull-request",
"resourceNamespace": "default"
},
"links": null,
"relatedFrom": [],
"relatedTo": [],
"createdAt": "2025-08-07T18:01:41.492752Z",
"updatedAt": "2025-08-07T18:01:41.492752Z"
}
To test, you can send this payload when creating an issue:
{
"title": "Test PR",
"description": "Testing this API before submitting PR",
"severity": "critical",
"issueType": "test",
"state": "ACTIVE",
"namespace": "default",
"scope": {
"resourceType": "component",
"resourceName": "pull-request"
},
"links": [
{
"title": "Pull Request",
"url": "https://github.com/konflux-ci/kite/pull/101"
}
]
}
The solution is to preload the links association in the "FindByID" method:
- duplicates
-
KFLUXUI-857 Kite is not returning the links
-
- New
-