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

Need to get 'Components' data from an Xray Test when it is added to a Test Execution

Edie Hovermale
Contributor
September 9, 2024

This might be a long shot, but I’m going to ask the community in case someone has already figured this out.

I'm trying to use Jira Automation to retrieve the 'Components' data from an Xray Test when it is added to an Xray Test Execution and then add those 'Components' to the Test Execution.

Since Xray doesn't use the 'Link Issue' functionality to connect Xray Test tickets to the Xray Test Execution ticket, I’m unsure how to trigger the event or capture the data.

Any assistance would be greatly appreciated.

For context, I’ve already spoken with Xray support, but the agent wasn’t aware of a solution. They opened a support ticket for the engineering team to investigate, but I’m hoping to find a quicker answer from the community if possible.

2 answers

2 accepted

1 vote
Answer accepted
Edie Hovermale
Contributor
October 24, 2024

Thanks @Marc - Devoteam and @Stefan Salzl for the info. :-)

I reached out to Xray and they gave me the following info. You are right they do not have event triggers that can be called via Jira Automation but they do have APIs that can be used.

---

Hello Edie,

Greetings for the day!

 

As discussed earlier, we do not have any event triggers in Xray Cloud that can help with such an automation process.

The only alternative is to check all the Tests to see what are the Test Executions using  APIs and use them for your automation. 

Thank you!

 

Kind regards,
XXXXXX[Xray Support Team]


---

Hello Edie,

Greetings for the day!

 

Please our GraphQL API methods to check what the Tests are added to the Test Execution and vice versa.

getTestExecutions
getTests

The endpoint for all the Graphql API is https://xray.cloud.getxray.app/doc/graphql/

Also, please use POST method even for getting the information.

 

Thank you!

Kind regards,
XXXXXX[Xray Support Team]

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 24, 2024

Hi @Edie Hovermale 

I‘m aware of the xray APIs and how to retrieve the data but I‘m still not seeing the trigger to call the API? 

your original post says „when a test is added to a testExecution“.

Best
Stefan

1 vote
Answer accepted
Marc - Devoteam
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.
September 10, 2024

HI @Edie Hovermale 

There has been a similar question on the community related to this subject, around Xray.

This was around adding Tests to a Test Set based on editing of a Test.

There is no data action in relation to this that's recorded by JIra, the same applies to your request.

Jira doesn't see this as an edit action os there is no option in automaton to use this as a trigger.

This is pure Xray functionality and only related to Xray. Automation is not able to use this as a trigger.

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 6, 2024

@Edie Hovermale 

here is the reference to the question @Marc - Devoteam mentioned recently:

https://community.atlassian.com/t5/Jira-questions/How-can-I-trigger-a-Jira-automation-rule-when-a-Test-is-added-to/qaq-p/2803824

 

Unfortunately XRAY actions are specific actions (different from native jira actions). A4J can only fetch/use native Jira actions as triggers.

Best
Stefan

Like Marc - Devoteam likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events