Xray : How to get linked issues for a Test Plan, a Test Execution or Test Case in groovy

Jean-Hugues April 16, 2021

Hello,

I try to automate the create of Test Plan, Test Execution and other kind of XRay issue type specially when a new version is created.

As I am trying to do it by groovy and Scriptrunner, the creation is working fine.

But I am strugling attaching by groovy a Test Execution to a Test Plan, a Test Case to a Test Execution, etc etc.

Here a visual example of linking a Test Execution to a Test Plan I want to do by groovy :

xray groovy.PNG

Using this kind of code doesn't work

Do you have an idea how I can achieve this ?

Many thanks in advance for your help

JH

 

1 answer

0 votes
John Chin
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.
April 20, 2021

Hi @Jean-Hugues ,

You can try Xray REST API to get the information. I notice there is a similar question was raised by other community member and seems like the only way would be using the rest api. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events