Forums

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

How to set status test run automatically trigger by the test case in JIRA Xray

Yudhi Pratama
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 30, 2023

Hi, I'm new using Xray Jira for test case management, previously I'm using testrail.

I have a question regarding, can we set the test execution status automatically when one of the test case include in that test execution is already changed from to do to passed/failed?

Screen Shot 2023-01-30 at 18.21.13.png

1 answer

1 accepted

1 vote
Answer accepted
Stefan Salzl
Community Champion
February 11, 2023

Hi @Yudhi Pratama and welcome to the community,

in general the status of a jira issue can be changed via Automation for Jira based on several triggers. The good point: an xray test execution is handled as a jira standard issue. The problem: test runs (which is what you mean with test case --> test run is the instance of a test case that is run within a test execution; every time you add a test case issue to a test execution issue an instance of that test case is generated within that test execution which is then called test run) are not handled as jira issues and it might be hard (if possible at all) to grab this event within an automation rule.

There might be a possibility via the FraphQL API (see link below) to grab testRuns:
https://xray.cloud.getxray.app/doc/graphql/gettestruns.doc.html

It just might be pretty difficult to get the automation rule triggered as there is no possibility (or at least I dunno any) to set a webhook for that.

 

Hope I could at least give some helpful input.

Best
Stefan

Yudhi Pratama
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 12, 2023

Hi @Stefan Salzl thanks for the reply really appreciate, wiil try it 

 

I think this is won't be my last question on this community, I will ask again about Xray...thankss !

Like Stefan Salzl likes this
Stefan Salzl
Community Champion
February 14, 2023

Hey @Yudhi Pratama 

thanks for your kind feedback. Don‘t hesitate to ask. That‘s what the community is here for ;)

Looking forward to your questions.

Best
Stefan

Chitra Raj May 27, 2024

@Yudhi Pratama  did you solve it via GraphQL? If yes, could you please share the solution?

Chitra Raj May 28, 2024

Hi @Stefan Salzl ,

Your explanation is awesome.

The problem is with trigger as there is no such direct trigger I found. I am able to change the  Status of Execution based on Test Runs'  status using GraphQL through Field Change or Comment  trigger ( used just for testing) but it'll not save time and is equivalent to changing the status manually. I'll explore webhook.

Suggest an answer

Log in or Sign up to answer