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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automatically generate a jira bug ticket when a Xray test failed

Hello, I'm setting up an e2e test automation system on jira with the Xray plugin.
In short, when I perform my tests in my CI environment, I communicate the test results to jira via the Xray api, which generates a test execution.
I would like to know if it is possible to automatically generate a ticket bug in jira when one of the tests fails?

1 answer

1 accepted

0 votes
Answer accepted

Hi @Dalil Chablis  -- Welcome to the Atlassian Community!

I do not use that add-on tool, and I wonder if it can generate an incoming webhook to Jira.  If so, you could use that webhook trigger to fire an automation rule to create the defect:


Best regards,


Hi @Bill Sheboy 

Thank you for your answer, I'm going to look on this side !

All the best,


Like Bill Sheboy likes this
Simeon Ross Atlassian Team Feb 14, 2021

Hi @Dalil Chablis,

@Bill Sheboy is right in that Web hooks are a great way to tackle this. When you said "communicate the test results to jira via the Xray api, which generates a test execution" how does this work out? Is the test execution an issue of some particular type or what happens?



Hi @Simeon Ross

I perform my e2e tests using the cypress framework.
When I run the tests, I generate a json report that I send to jira through the Xray api.
And this generates an xray run-time ticket that contains my test results.



Simeon Ross Atlassian Team Feb 15, 2021

Hi @Dalil Chablis,

So, if the xray run-time ticket contains the test results in the description or a custom field you could try using the Advanced compare to see if they contain key words that a indicate a test has failed and, if so, create a bug ticket.

If not, webhooks would be the way to go.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

149 views 3 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you