i have created a body like this
{
"cycleId": "-1",
"issueId": "1821331",
"projectId": "24771",
"versionId": "10001",
"assigneeType": "assignee",
"assignee": "",
"folderId": ""
}
even after getting 200 response test execution was not created in jira issue
can you please use the below API for creating execution , if you are using Zephyr Cloud:
https://zfjcloud.docs.apiary.io/#reference/execution/add-tests-to-folder/create-execution
Sample request:
POST /connect/public/rest/api/1.0/execution HTTP/1.1
Host: prod-api.zephyr4jiracloud.com
Authorization: JWT XXXXX(using script)
zapiAccessKey: Access key copy from zephyrsquad menu
Content-Type: application/json
Cache-Control: no-cache
Postman-Token: b5a56b25-a61b-befd-1804-32cd35398d07
{
"cycleId": "-1",
"issueId": "10414",
"projectId": "10009",
"versionId": "-1",
"assigneeType": "",
"assignee": "",
"folderId": ""
}
Sample Response:
{
"warningMessage": null,
"originMessage": null,
"execution": {
"id": "19b7f4e3-9b28-467c-a00b-6a4dbfa97b8b",
"issueId": 10414,
"versionId": -1,
"projectId": 10009,
"cycleId": "-1",
"orderId": 1,
"createdBy": "XXXXX",
"createdByAccountId": "XXXXX",
"status": {
"name": "UNEXECUTED",
"id": -1,
"description": "The test has not yet been executed. edited",
"color": "#A0A0A0",
"type": 0
},
"cycleName": "Ad hoc",
"creationDate": 1643623868441,
"executedByZapi": true,
"folderId": "",
"zfjIndexType": "execution",
"issueTypeId": 10005,
"projectType": "classic",
"issueIndex": 10414,
"projectCycleVersionIndex": "10009_-1_-1",
"executionStatusIndex": -1,
"projectIssueCycleVersionIndex": "10009_10414_-1_-1"
},
"issueKey": "Z8-56",
"issueLabel": "BDD_Scenario",
"component": null,
"issueSummary": "test3",
"issueDescription": "",
"projectName": "Zsqaud 802",
"versionName": "Unscheduled",
"priority": "Lowest (migrated)",
"priorityIconUrl": null,
"executedByDisplayName": null,
"assigneeType": null,
"assignedToDisplayName": null,
"testStepBeans": null,
"defectsAsString": "",
"projectKey": "Z8",
"plannedExecutionTimeFormatted": null,
"actualExecutionTimeFormatted": null,
"executionWorkflowStatus": null,
"workflowLoggedTimedIncreasePercentage": null,
"workflowCompletePercentage": null,
"versionReleased": false,
"customFieldValuesAsString": null,
"viewIssuePermission": true,
"executionWorkflowEnabled": false
}
if you need more details please reach out to zephyr support :
https://support.smartbear.com/zephyr-squad/message/?product=zephyr_for_jira_cloud
Thanks,
Zephyr QA
we are using zephyr squad and our's is data center not cloud.
after executing them in data center getting response 200 but no execution has been created.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!
Register todayOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.