The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create zephyr test execution using postman api in jira?

sai chinamuthevi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 30, 2022

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 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Zephyr QA
January 31, 2022

Hi @sai chinamuthevi 

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

sai chinamuthevi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 31, 2022

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.

Like Jeanette likes this