How to add a Test to a Zephyr Test Cycle using the REST API?

William Gilbert May 4, 2023

These are invalid URIs...

# uri = URI("#{@url}/rest/api/2/execution/addTestsToCycle") 404 not found
# uri = URI("#{@url}/rest/api/2/execution/add/cycle/91633") 404 not found
# URI("#{@url}/rest/api/2/execution/add/cycle") 404
# uri: #{@url}/rest/api/2/executions/add/91633 404 not found

This is the Body I'm trying to send...

{"fields": {
"method" : "1",
"issues" : ["QTP-12569"],
"assigneeType" : "assignee",
"assignee" : "glo43683",
"projectId": "QTP",
"versionId": "259013",
"cycleId": "91633"

2 answers

0 votes
William Gilbert May 4, 2023

This is the documentation used for that previous failed attempt.'s-to-cycle


Is there newer/better documentation available?

0 votes
William Gilbert May 4, 2023

Hmm, this URI...

results in this response...
Service Not Found. The request may have been sent to an invalid URL, or intended for an unsupported operation.

Sandeep Dwadasi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 1, 2023

were you able to figure this out

Suggest an answer

Log in or Sign up to answer