Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

LINKING TEST EXECUTIONS TO TEST PLAN (xray-scriptrunner-jira cloud)

Gaetano Antonio Turturro April 11, 2025

Sulla mia istanza Jira ho installato Xray, che utilizzo per la gestione dei test. Attualmente, l’associazione delle Test Execution ai rispettivi Test Plan avviene manualmente, in quanto non sono riuscito a individuare un endpoint REST documentato che consenta di automatizzare questo processo tramite ScriptRunner. Confermate questa defezione?

Sto cercando una soluzione alternativa o un possibile workaround per gestire questa operazione in modo programmatico, idealmente attraverso uno script Groovy compatibile con ScriptRunner. Avete suggerimenti o conoscete un metodo per ottenere questo risultato, anche eventualmente sfruttando chiamate indirette o operazioni supportate tramite altri endpoint REST?

 

On my Jira instance, I have Xray installed, which I use for test management. Currently, associating Test Executions with their respective Test Plans is a manual process, as I haven’t been able to identify a documented REST endpoint that allows this operation to be automated via ScriptRunner. Can you confirm whether this limitation is expected?

I’m looking for an alternative solution or a possible workaround to handle this task programmatically—ideally using a Groovy script compatible with ScriptRunner. Do you have any suggestions or know of a method to achieve this, possibly by leveraging indirect calls or operations supported through other REST endpoints?

1 answer

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.
April 15, 2025

Hi @Gaetano Antonio Turturro

Thank you for your question!

Have you tried using graphQL for this? specifically the "addTestExecutionsToTestPlan"

You can find more information here: GraphQL & GraphQL API 

In case there are doubts, feel free to reach out to us here.

Best, Francisco

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events