Zephyr - GET request return invalid JSON still
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Zephyr - GET request return invalid JSON still
Hi. I have a troubles with endpoint Get Step Result By execution -> https://zfjcloudgdpr.docs.apiary.io/#reference/stepresult/get-stepresults-by-execution
URL:
https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/stepresult/search?issueId=15550&executionId=bacf0888-4be9-4e07-8474-559daafddfc84
HEADERS:
Content-Type: application/json
Authorization: JWT ...
zapiAccessKey: MDRiZGJmNDAtOTI....
URI PARAMETERS:
executionId: bacf0888-4be9-4e07-8474-559daafddfc84
issueId: 15550
RESPONSE:
{
"errorType": "ERROR",
"clientMessage": "Invalid Json",
"errorCode": 151
}
Also i have an question about stepResultID, it is possible to get it only from mentioned (on the up) endpoint ?
Thanks for response.
Lukas Pollak
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @lukaspollak ,
Please find the below APIs.
1) To find execution ids of an issue id.
API:
https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/executions?issueId=your_issue_id&p...
Method: GET
Ex:
https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/executions?issueId=53111&projectId...
Response: Above API provide the many execution ids of your specified issueid.
Screenshot attached.
Reference link:
https://zfjcloud.docs.apiary.io/#reference/execution/get-list-of-executions/get-list-of-executions
**************************************************************************************
2) Get stepresults by Execution
API:
https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/stepresult/search?executionId=&iss...
Method: GET
Ex:
https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/stepresult/search?executionId=005c...
005c1230-34c6-4540-aed4-bd7eb7c9580c --> my execution id from the above 1st API response.
Response:
Screenshot attached.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok. So i am doing it in the same way like u. But it is good that u have sent me a screenshot. I found in your OPEN API -that u has required Content-type (not possible unclick), but with content-type it is not working and therefore i spent on it much time, but thanks to your screenshots i found the reason.
See on the attached screenshots
Thanks for response.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Happy to hear that the issue was resoled, @lukaspollak!
Thanks for the help, Bibek
Tanya Yatskovskaya
SmartBear Community and Education Manager
