Forums

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

In Jira automation, get tickets' informations using its id in a script

Admin Jira May 28, 2024

Hi,

I'm using automation and i wanted to know if it is possible using script to get informations from a ticket for which i know the id.

1 answer

0 votes
Mark Segall
Community Champion
May 28, 2024

Hi @Admin Jira and welcome to the community!

It would help to have a little more context around what the goal(s) you're trying to achieve such as what is triggering this and what actions you want to take on the issue.  This will enable us to point you in the right direction.

Admin Jira May 29, 2024

Hi,

I'm using Xray and i want that when a test execution is added to a test plan, the test execution inherit the test plan's components. The problem is, it is not really a link between these two entities, so i don't know how to get the test plan informations from the test execution.

The test execution has an attribute 'test plan' containing the id of the test plan  to which it is linked. So this is the trigger of my rule, whenever this value change, i want the components of the test plan to get inherited to the test execution.

As i don't know how to get the components of the test plan from there, i was wondering if it is possible to get this information using the test plan id (that i got) in a script

Admin Jira June 4, 2024

@Mark Segall, do you have any idea ?

Mark Segall
Community Champion
June 4, 2024

I'm not 100% familiar with XRay so I'll have to defer to my community colleagues on this one.

Suggest an answer

Log in or Sign up to answer