Page 1 sur 1

Squash TM : REST API : Unable to get Bug linked to ExecutionStep

Publié : ven. nov. 16, 2018 3:39 pm
par cizaire-cts
Hi,

We are using REST api to squash 1.17.1.RELEASE, PRO version.

We did not find the way to get the defect linked to an execution-steps :
- It shows up in the graphical user interface : http://squash:8080/squash/executions/231
- It does not show up in the answer for http://squash:8080/squash/api/rest/late ... tions/231​
- It does not show up in the answer for http://squash:8080/squash/api/rest/late ... -steps/760 which is linked in http://squash:8080/squash/api/rest/late ... tions/231​
​- We did not find any reference to any field in the squash REST documentation that contains the id of the linked bug

Can you please tell us how to find the reference to the bug for a failed execution step using Squash REST API ?

Regards,
P. Cizaire

Re: Squash TM : REST API : Unable to get Bug linked to ExecutionStep

Publié : lun. juin 26, 2023 10:13 am
par cassiecelestin
cizaire-cts a écrit : ven. nov. 16, 2018 3:39 pm Hi,

We are using REST api to squash 1.17.1.RELEASE, PRO version.pizza tower

We did not find the way to get the defect linked to an execution-steps :
- It shows up in the graphical user interface : http://squash:8080/squash/executions/231
- It does not show up in the answer for http://squash:8080/squash/api/rest/late ... tions/231​
- It does not show up in the answer for http://squash:8080/squash/api/rest/late ... -steps/760 which is linked in http://squash:8080/squash/api/rest/late ... tions/231​
​- We did not find any reference to any field in the squash REST documentation that contains the id of the linked bug

Can you please tell us how to find the reference to the bug for a failed execution step using Squash REST API ?

Regards,
P. Cizaire
Hello,
If you want to find the reference to the bug for a failed execution step using Squash REST API, you can use the following endpoint: /api/rest/executions/{id}/execution-steps/{id}1. This endpoint will return the execution step details including the bug reference if there is one.