Forums

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

Jira Automation - get info about Xray Test Execution

Vojtech Kalab December 17, 2024

 

 

We encounter a problem in our Jira Automation.

Jira automation brief description:
Triggered if we create a Test execution, check content of this test execution and based on that form a message which is send to teams via webhook.

The problem is in getting information about test execution.

This is what shows log now:

image.png

And this is how it looks like before:

image.png

As you can see testRuns field is now empty, however test execution looks like before - same number of tests, results are there, some passed, some failed...
Until Sunday everything worked smooth, since Monday it looks like this.
It was not just single failier, i tried it several time with the same result empty testRuns field.

Any idea what could cause such an issue?

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
Bill Sheboy
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.
December 17, 2024

Hi @Vojtech Kalab 

I recommend checking...

  • has something changed in the way the REST API endpoint is called, and
  • check with Xray support / documentation to learn if something changed with the REST API endpoint you are calling.

Kind regards,
Bill

Vojtech Kalab December 17, 2024

So far what did the trick and automation chain works once more:
Add Re-fetch before calling xray api.

Bill Sheboy
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.
December 17, 2024

Thanks, @Vojtech Kalab 

I should have asked to see your complete rule as it likely was impacted by the known timing problem with the Issue Created trigger where it fires before all data is available to the rule.  Generally, it is a good idea to always add Re-fetch Issue immediately after that trigger.

Like Vojtech Kalab likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events