When I call
/api/v1/project/{jiraProjectId}/testcycle/{testCycleId}/testcase
and /api/v1/project/{jiraProjectId}/testcycle/{testCycleId}/testrun the comments and attachments fields are missed.
{ "items": [ { "ID": 3927, "testCase": { "ID": 449, "jiraProjectID": 10143, "permission": { "value": 15 }, "key": "QLOPS-TC-10", "version": 2, "title": "karl task test case 2", "description": null, "precondition": null, "ownedByID": "712020:e16db66d-4a22-417f-8c87-969138b762e4", "folder": null, "status": { "ID": 11, "name": "Published", "description": "The test is ready for execution" }, "priority": null, "scriptType": { "ID": 5, "name": "Classic", "description": "Steps represented in default representation - step, data and expected results", "isEnabled": true }, "type": null, "jiraComponentID": null, "jiraComponentIDs": [], "jiraReleaseID": null, "jiraReleaseIDs": [], "estimatedEffort": null, "createdDate": 1735615271908, "updatedDate": 1736414949388, "isArchived": false, "customFields": [ { "ID": 6, "name": "Automation revision", "value": null } ], "hasDataSets": false, "tags": [], "automationStatus": { "ID": 12, "name": "Automated", "description": "The case has been automated" }, "automationOwnerID": "712020:e16db66d-4a22-417f-8c87-969138b762e4", "automationKey": null, "jiraRequirementIDs": [ "118586" ] }, "assignedToID": "712020:e16db66d-4a22-417f-8c87-969138b762e4", "assignedByID": "712020:e16db66d-4a22-417f-8c87-969138b762e4", "assignmentDate": null, "assignSteps": true, "latestRun": { "ID": 4418, "permission": { "value": 15 }, "testRunStatus": { "ID": 13, "name": "Passed", "description": "The test run has passed" }, "effort": null, "isAutomated": false, "executedByID": "712020:e16db66d-4a22-417f-8c87-969138b762e4", "createdDate": 1737351306081, "updatedDate": 1742180685376, "jiraDefectIDs": [], "customFields": [ { "ID": 1, "name": "Mobile Model/OS", "value": [] }, { "ID": 2, "name": "Specific Device Info", "value": null }, { "ID": 3, "name": "PC OS/Browser", "value": [] }, { "ID": 7, "name": "Test Accounts", "value": null } ], "testRunSteps": null, "dataSetExecutionsCount": 0 } }, { "ID": 3928, "testCase": { "ID": 467, "jiraProjectID": 10143, "permission": { "value": 15 }, "key": "QLOPS-TC-80", "version": 1, "title": "TEST KARL", "description": null, "precondition": null, "ownedByID": "712020:e16db66d-4a22-417f-8c87-969138b762e4", "folder": null, "status": { "ID": 11, "name": "Published", "description": "The test is ready for execution" }, "priority": null, "scriptType": { "ID": 5, "name": "Classic", "description": "Steps represented in default representation - step, data and expected results", "isEnabled": true }, "type": null, "jiraComponentID": null, "jiraComponentIDs": [], "jiraReleaseID": null, "jiraReleaseIDs": [], "estimatedEffort": null, "createdDate": 1735645422533, "updatedDate": 1737351336288, "isArchived": false, "customFields": [ { "ID": 6, "name": "Automation revision", "value": null } ], "hasDataSets": false, "tags": [], "automationStatus": { "ID": 12, "name": "Automated", "description": "The case has been automated" }, "automationOwnerID": "712020:e16db66d-4a22-417f-8c87-969138b762e4", "automationKey": null, "jiraRequirementIDs": [] }, "assignedToID": "712020:e16db66d-4a22-417f-8c87-969138b762e4", "assignedByID": "712020:e16db66d-4a22-417f-8c87-969138b762e4", "assignmentDate": null, "assignSteps": true, "latestRun": { "ID": 14931, "permission": { "value": 15 }, "testRunStatus": { "ID": 13, "name": "Passed", "description": "The test run has passed" }, "effort": null, "isAutomated": false, "executedByID": "712020:e16db66d-4a22-417f-8c87-969138b762e4", "createdDate": 1742180695899, "updatedDate": 1742180699645, "jiraDefectIDs": [], "customFields": [ { "ID": 1, "name": "Mobile Model/OS", "value": [] }, { "ID": 2, "name": "Specific Device Info", "value": null }, { "ID": 3, "name": "PC OS/Browser", "value": [] }, { "ID": 7, "name": "Test Accounts", "value": null } ], "testRunSteps": null, "dataSetExecutionsCount": 0 } } ], "startAt": 0, "maxResults": 100, "isLast": true }
Hello,
The two APIs you mentioned —
/api/v1/project/{jiraProjectId}/testcycle/{testCycleId}/testcase
/api/v1/project/{jiraProjectId}/testcycle/{testCycleId}/testrun
are working as designed. These endpoints are meant to return multiple test runs, and hence do not include comments or attachments in their response.
To fetch comments and attachments, we recommend using the Get the run details of a testrun in a Cycle by run IDÂ API:
/api/v1/project/{jiraProjectId}/testcycle/{testCycleId}/testrun/{testRunId}
This endpoint is designed to return detailed data for an individual test run, including the fields you’re looking for.
We do acknowledge that Swagger currently displays comments and attachments in the sample response for the two APIs mentioned above. This is a known bug, and we will work on correcting this to prevent confusion going forward.
If your use case requires comments and attachments to be included in the response for the two bulk APIs, please do let us know. We'd love to understand your requirement better so we can evaluate possible improvements or alternatives. You can reach out to us via help@aiotests.com