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

Issue Downloading Cucumber Test Cases from Jira Using Xray(trial) API - 401 Error

Rohit Hooda
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!
July 1, 2024

I'm trying to download my Cucumber test cases defined in Jira as a .feature file using the Xray REST API. Here are the steps I'm following:

  1. I use my Xray client_id and client_secret to get a token from https://xray.cloud.getxray.app/api/v2/authenticate.

  2. Then, I make a GET request to https://xray.cloud.getxray.app/api/v2/export/cucumber?keys=PX-2 with the following headers:

    • Content-Type: application/json
    • Authorization: Bearer ABCD (Assume ABCD is my 441-character authentication token and PX-2 is my test key in Jira).

However, I keep getting a response with status 401 and the body:

{ "error": "Xray data is in another region. Contact support to migrate Xray data to current region." }

Has anyone seen this problem before. Kindly help.
Thanks in advance!

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Francisco Fonseca (Xray)
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.
July 2, 2024

Hi @Rohit Hooda ,

Welcome to the community!

Given the error, I strongly suggest you contact Xray Support here. They can assist you with any issues related to your Data Residency which I believe must be the case here.

Best,
Francisco

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events