Create
cancel
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

Xray DC to Cloud Migration

Hi,

I am trying to migrate Xray from DC to cloud.

In this process, I am trying to run python Scripts provided by the vendor here: https://github.com/Xray-App/xray-cloud-mig

The file xray_variables.py requires ID of a custom Field "GLOBAL_preConditionDetails".

However, I have not been able to find any such custom field.

The custom fields available in Jira DC instance are: "Conditions", "Pre-Condition Type", "Pre-Conditions association with a Test" and "Tests association with a Pre-Condition".

Screenshot 2021-03-20 at 11.10.59 AM.png
In readme file for python scripts (for migrating to Xray Cloud) https://github.com/Xray-App/xray-cloud-mig/blob/master/README.md
In the section "Understanding the Global Variables" for "JIRA Onpremise", the last custom field is specified as :
GLOBAL_preConditionDetails (The ID of the Pre Condition details customfield)

Can anyone here help me understand which field is the "GLOBAL_preConditionDetails"?

 

1 answer

0 votes

I just confirmed that it will be the "Conditions" field.

Putting this answer so that anyone having the same query can find the answer here.

Gaurav Community Leader Apr 15, 2021

Hello @Deepanshu Natani

Kindly share if you have been successful with the migration using the scripts. I have been struggling with the scripts for the last 2 weeks where I am trying to migrate the Xray server data to cloud.

Any guidance would be really helpful to achieve the migration.

Thanks in advance.

-Gaurav

Hi @Gaurav ,

Yes, after going through a lot of issues, I was able to migrate Xray Data to Cloud.

Can you elaborate on the issue you are facing?

Like Gaurav likes this
Gaurav Community Leader Apr 16, 2021

Hi @Deepanshu Natani

I have executed all the scripts and quite a few of them are erroring out. Some of the errors are as below:

2021-04-12 13:07:08,792 - root - INFO -
{"errors":[{"message":"Error updating Test: test with id 10388 not found!","locations":[{"line":1,"column":13}],"path":["sjktzjvsax"]},
{"message":"Error updating Test: test with id 10388 not found!","locations":[{"line":1,"column":176}],"path":["lmrxvklyxk"]},{"message":"Error updating Test: test with id 10392 not found!","locations":[{"line":1,"column":367}],"path":["knrrrejpsl"]},
{"message":"Error updating Test: test with id 10392 not found!","locations":[{"line":1,"column":530}],"path":["dpuotawdlt"]},

{"message":"Error updating Test: test with id 10398 not found!","locations":[{"line":1,"column":707}],"path":["xnpdsendbo"]},
{"message":"Error updating Test: test with id 10398 not found!","locations":[{"line":1,"column":870}],"path":["lkpnqfclnk"]},

{"message":"Error updating Test: test with id 10402 not found!","locations":[{"line":1,"column":1061}],"path":["hrscrrqaub"]},
{"message":"Error updating Test: test with id 10402 not found!","locations":[{"line":1,"column":1224}],"path":["urtiyxclvj"]},

{"message":"Error updating Test: test with id 10406 not found!","locations":[{"line":1,"column":1398}],"path":["foacgukvrl"]},
{"message":"Error updating Test: test with id 10406 not found!","locations":[{"line":1,"column":1561}],"path":["xvytiacudv"]}

],

"data":{"sjktzjvsax":null,"lmrxvklyxk":null,"knrrrejpsl":null,"dpuotawdlt":null,"xnpdsendbo":null,"lkpnqfclnk":null,"hrscrrqaub":null,"urtiyxclvj":null,"foacgukvrl":null,"xvytiacudv":null}}


2021-04-12 13:07:08,795 - root - INFO - Ohh dear...
2021-04-12 13:07:08,800 - root - INFO - {"errors":[{"message":"Error updating Test: test with id 10388 not found!","locations":[{"line":1,"column":13}],"path":["sjktzjvsax"]},{"message":"Error updating Test: test with id 10388 not found!","locations":[{"line":1,"column":176}],"path":["lmrxvklyxk"]},{"message":"Error updating Test: test with id 10392 not found!","locations":[{"line":1,"column":367}],"path":["knrrrejpsl"]},{"message":"Error updating Test: test with id 10392 not found!","locations":[{"line":1,"column":530}],"path":["dpuotawdlt"]},{"message":"Error updating Test: test with id 10398 not found!","locations":[{"line":1,"column":707}],"path":["xnpdsendbo"]},{"message":"Error updating Test: test with id 10398 not found!","locations":[{"line":1,"column":870}],"path":["lkpnqfclnk"]},{"message":"Error updating Test: test with id 10402 not found!","locations":[{"line":1,"column":1061}],"path":["hrscrrqaub"]},{"message":"Error updating Test: test with id 10402 not found!","locations":[{"line":1,"column":1224}],"path":["urtiyxclvj"]},{"message":"Error updating Test: test with id 10406 not found!","locations":[{"line":1,"column":1398}],"path":["foacgukvrl"]},{"message":"Error updating Test: test with id 10406 not found!","locations":[{"line":1,"column":1561}],"path":["xvytiacudv"]}],"data":{"sjktzjvsax":null,"lmrxvklyxk":null,"knrrrejpsl":null,"dpuotawdlt":null,"xnpdsendbo":null,"lkpnqfclnk":null,"hrscrrqaub":null,"urtiyxclvj":null,"foacgukvrl":null,"xvytiacudv":null}}

 

Thanks in advance.

-Gaurav

Gaurav Community Leader Apr 16, 2021

Hi @Deepanshu Natani

Is it possible for you to share the general approach which you took for the migration and troubleshooting the issues.

Thanks in advace.

-Gaurav

Hi @Gaurav 

This error is most probably occurring because one of the test cases which the script is trying to sync is not present on your Cloud environment.

General approach:

  • Before running the scripts, please make sure that you have completely migrated all the Jira issues to your Cloud environment.
  • Install Xray on Cloud, check if your issue types (for Xray) are correctly identified by Xray. If not, take the necessary steps to reconfigure those issue types.
  • Once the issue types are identified by Xray, you can start running the scripts.
  • If you encounter issues with scripts, check if the corresponding issue/ test case is present on cloud or not.
  • If the issue/ test case is present on cloud, check the error in detail. The script may not run if there is some invalid characters in your test case/ issues fields.
  • You can also alter the JQL query/ ignore flag to skip the Jira issue causing the error.
  • Some of the scripts can take even upto 3-4 days (depending on your data set). Specially the script for syncing Manual test definitions and test execs and test linking one.

Hi  @Deepanshu Natani 

Xray is integrated in the Jira Cloud Migration Assistant (JCMA), and there is Early Adopters Program (EAP) already started.
Please file your application for the EAP [here|https://surveys.atlassian.com/jfe/form/SV_6SAs9OX0eAbGk5f].

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

Suggest an answer

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

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

723 views 7 24
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