Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automatically create new version of an Xray Test when linked issue workflow is updated

Samuel Holley July 18, 2024

Hi all,

We have recently started to use Test Case versioning available through Xray Enterprise.

What we would like to do is create a new version of a Test whenever the linked Requirement is moved through it's workflow.

We know how to automate many actions for when a linked issue is updated, such as creating entirely new issues or updating fields, but we cannot find any documentation for creating a new version of a test.

Is this currently possible using any existing automation tools? We have used ScriptRunner to automate similar things in the past.

Is there an API for managing test versions?

All responses welcomed, thank you.

2 answers

0 votes
Manuel
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 Leaders.
October 19, 2024

Currently it's not possible to do that through an workflow transition, at least directly.

There's a REST API endpoint for creating versions of tests that you could potentially invoke using ScriptRunner. To be clear, the previous endpoint is not for actually managing versions as a whole but instead for creating steps associated to a given version of manual test.

So you can invoke the Xray API to create a new version.. eventually with blank steps, if that makes sense for you.

0 votes
Francisco Fonseca _Xray_
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 Leaders.
July 24, 2024

Hi @Samuel Holley 

Thank you for reaching out.

I would suggest in this case you reach out to our Support here.

Best, Francisco

Suggest an answer

Log in or Sign up to answer