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: 

Cloning tests from one folder to another

skala
June 18, 2024

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: 

https://support.smartbear.com/zephyr-squad-server/docs/en/zephyr-squad-server-rest-api/zephyr-squad-api---how-to/add-tests-to-cycle.html#idp25193

 

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.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Tansu Akdeniz
Community Champion
June 30, 2024

Hi @skala 

Welcome to the community.

It would be better to verify with Vendor https://marketplace.atlassian.com/vendors/17834/smartbear.

DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events