Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Is there a way in to automatically link new test cases and test executions to an Xray test plan?

We are using Jira Cloud plus Xray Cloud. We use a test plan for each sprint so currently we need to:

Create a test plan for a sprint
Create new tests from a Jira story/bug (test is linked to the Jira ticket)
Go back to the test plan and manually link the tests
Create a test execution for the test
Manually link the test execution to the test plan (unless we create the test execution from the test plan directly)

Ideally if it's possible to reduce the amount of manual linking that would be great!

Create a test plan for a sprint
Any new tests and test executions created for the items on that sprint are linked to the test plan as they get created

1 answer

0 votes

Hi Rachel, 

The Test cases in a dynamic Test Plan will be provided by a saved filter of:

  • Test issues
  • Covered issues

In the case of covered issues, Xray will automatically add all Test cases associated with the covered issues.

Dynamic Test Plans will be updated automatically by the tool. Xray will process dynamic test plans in a specified interval. Project admins are able to configure in which workflow statuses a Test Plan must be automatically updated. For example, if a Test Plan is closed, it might not be necessary to refresh the tests in the test plan.

Best Regards, 

Team Xray 

I'm trying to do the same thing that's being asked about here. Specifically, I want to automatically create a Test Case when a Story or Defect is moved to particular state, and add then add the Test Case to the Test Plan associated with the Epic.

This answer says that Dynamic Test Plans will accomplish this, but I see that Dynamic Test Plans is a feature that's still in development.

Is there a way, with Jira or Xray automation, to add a Test to a Test Plan?

Hi @Ron Feldman 

Since Jira Automation can execute Web Requests, please try the idea of using Xray GraphQL to add a Test to a Test Plan.

Here are the documentation links:

And the GraphQL mutation to add Tests to Test Plans:

Thank you.

Kind regards,
Rogério Paiva [Xray Support Team]

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: Fine Software

Happy New Year, everybody! What better way to kick off 2022 than with a new Marketplace Partner Spotlight ✨ This month, we're getting to know Daniel Franz, co-founder of Fine Software. Fine Software ...

410 views 2 15
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