Forums

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

Unable to Use Xray API for Test Plan and Test Execution Management (404 Error)

Luiz Eduardo
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!
December 9, 2024

Hello,

I'm attempting to manage Jira tests (Test Plan and Test Execution) using the Xray API, but I keep encountering a 404 error when making requests.

Specifically, I'm trying to use the following API endpoint to link Test Plans and Test Executions:

I've tried both API versions (1.0 and 2.0), but the issue persists. I have followed the official Xray documentation:

Here are a few details:

  • My Jira instance is on Jira Cloud.
  • The Xray plugin is installed and visible in my Jira environment.

Could anyone clarify:

  1. Is there a different endpoint or URL that should be used for Jira Cloud?
  2. Are there any additional configurations required to enable these API endpoints for Xray on Jira Cloud?
Return from JIRA:

Oops, you've found a dead link.

  • Go back to the previous page
  • Go to the Home Page

1 answer

1 vote
Manuel
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 10, 2024

HI @Luiz Eduardo ,

those endpoints are only available for Xray on-premises (datacenter).

In cloud you will need to use the graphql API for that.

Examples of mutations you can use to add tests or test executions to Test Plans:

There are additional mutations.

 

To perform the graphql request, you need to obtain a token by calling the REST API endpoint for that.

 

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events