ListTestResultBugRelations - Query bugs associated with a test result
Applicable editions | Central edition, Region edition |
Endpoints and authorization
- Obtain an endpoint. Replace {domain} in the request syntax with the endpoint.
- Obtain a personal access token.
- Obtain an organization ID: Required only for the Central edition. Go to the organization management console and obtain the organization ID from the basic information page.
Product | Resource | Required permissions |
Test management | Test plan | Read-only |
Request syntax
Central edition
GET https://{domain}/oapi/v1/testhub/organizations/{organizationId}/testPlans/{testplanId}/testcases/{id}/bugs
Region edition
GET https://{domain}/oapi/v1/testhub/testPlans/{testplanId}/testcases/{id}/bugs
Request header
Parameter | Type | Required | Description | Example value |
x-yunxiao-token | string | Yes | The personal access token. | pt-0fh3****0fbG_35af****0484 |
Request parameters
Parameter | Type | Location | Required | Description | Example value |
organizationId | string | path |
| The organization ID. | |
testplanId | string | path | Yes | The ID of the test plan. | |
id | string | path | Yes | The ID of the test case. |
Request examples
Central edition
curl -X 'GET' \
'https://{domain}/oapi/v1/testhub/organizations/{organizationId}/testPlans/{testplanId}/testcases/{id}/bugs' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region edition
curl -X 'GET' \
'https://{domain}/oapi/v1/testhub/testPlans/{testplanId}/testcases/{id}/bugs' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
Parameter | Type | Description | Example value |
| - | array | ||
| - | object | ||
| assignedTo | object | ||
| id | string | The user ID. | user-id-xxx |
| name | string | The name of the user. | name-xxx |
| gmtCreate | string | The time when the association was created. | 2026-08-07T15:28:50Z |
| serialNumber | string | The serial number of the bug. | PROJ-123 |
| spaceIdentifier | string | The ID of the project that the bug belongs to. | project-id-xxx |
| status | object | ||
| id | string | The ID of the status. | status-id-xxx |
| name | string | The name of the status. | To be confirmed |
| subject | string | The title of the bug. | The logon button does not respond when clicked |
| workitemId | string | The ID of the bug work item. | workitem-id-xxx |
| workitemTypeName | string | The name of the bug work item type. | Bug |
Response example
[
{
"assignedTo": {
"id": "user-id-xxx",
"name": "name-xxx"
},
"gmtCreate": "2026-08-07T15:28:50Z",
"serialNumber": "PROJ-123",
"spaceIdentifier": "project-id-xxx",
"status": {
"id": "status-id-xxx",
"name": "To be confirmed"
},
"subject": "The logon button does not respond when clicked",
"workitemId": "workitem-id-xxx",
"workitemTypeName": "Bug"
}
]
Error codes
For error codes, see the Error Code Center.