Forum Discussion

anon-explorer's avatar
anon-explorer
Occasional Visitor
2 months ago

Add Tests to Cycle taking too long with Jira Zephyr API

I created a test cycle in Jira using:

Then I tried adding a Zephyr test to the test cycle:

POST /rest/zapi/latest/execution/addTestsToCycle addTestToCycle = { "method": 1, "issues":["test-key-name"], "versionId": -1, #If you are not going to use any version, set "versionId": -1. "cycleId": 1234, "projectId": 2345, "folderId": -1, "assigneeType": None }

This gave me a response with jobProgressToken as mentioned in the documentation

To fetch status of job, I do a GET

curl -u username:pass https://baseurl/rest/zapi/latest/execution/jobProgress/jobProgressToken ?type=bulk_execution_copy_move_job_progress Response: {"zipped":false,"summaryMessage":"","totalSteps":1,"errorMessage":"","entityId":"","message":"","completedSteps":0,"timeTaken":"27 min, 38 sec","stepMessage":"","progress":0.0,"id":"jobProgressToken","stepLabel":"","entity":"","stepMessages":[]}

It's been stuck here for more than 30 mins now and nothing seems to happen. I can't even delete the test cycle now as Add Tests to Cycle is in progress.

 

What did I do wrong? How to finish this job process?

1 Reply

  • Has this issue been resolved for you? Me and my team have been consistently having issues adding tests to test cycles over the last month. We can no longer add tests from the test view. Adding from the cycle only works about 1/3rd of the time and when it does work, if adding more than 1 test, it won't add all of them. It's causing a ton of extra work. Just curious if you found a solution.