Hi, We attempted to clone tests from one folder to another using the REST API as described in the Zephyr Squad documentation (method 3). Here are the details:
API Requests and Responses:
Request to API1: Purpose: Import test cases using method 3 as per the ZAPI documentation.
{ "method": 3, "projectId": 16667, "fromVersionId": 31897, "fromCycleId": -1, "cycleId": 56663, "folderId": 25735, "labels": "", "priorities": "", "statuses": "", "hasDefects": false, "components": "", "versionId": -1 }
Response:-
{ "jobProgressToken": "0001718633370723-5056bf7ce7-0001" }
Get request to API2 (Checking Job Progress):
Response:
{ "completedSteps": 0, "timeTaken": "0 min, 2 sec", "stepMessage": "", "progress": 0.0, "id": "0001718633370723-5056bf7ce7-0001", "stepLabel": "", "entity": "", "stepMessages": [] }
Problem: Even though we received a 200 OK response, the test cases are not being imported into the folders within the specified cycle. However, when we specify issue keys in API1, the tests are successfully cloned from one folder to another.
Request Example with Issue Key:
{ "method": 3, "projectId": 15462, "fromVersionId": 41953, "fromCycleId": 56664, "cycleId": 56665, "versionId": 34631, "hasDefects": false, "folderId": 25738, "issues": ["TSH-42"] }
Response: { "completedSteps": 1, "timeTaken": "15 min, 19 sec", "stepMessage": "", "progress": 1, "id": "0001718715528443-5056bf7ce7-0001" }
Could you please confirm if it is necessary to mention all the test keys in the API request to copy them from one folder to another in Jira? We would appreciate your guidance on this matter to ensure the correct implementation of the API.
Thank you.
Hi @skala
Welcome to the community.
It would be better to verify with Vendor https://marketplace.atlassian.com/vendors/17834/smartbear.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.