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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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
AUG Leaders

Atlassian Community Events