Migrate Project between Instances

DerivcoITServer August 29, 2017

Hi,

We are trying to migrate selected projects using the Project Configurator plugin where the user base is connected to the same Active Directory however the usernames are configured differently on both instances. On the source instance the username are the SamAccount Name of the user while on the destination instance the username is the Email address of the same user. 

How do we go about making use of the Project Configurator plugin to successfully migrate the projects between both these instances?

We can assume that every user that was part of the project on the Source instance has already used the Destination instance, so they have active accounts.

There would then have to be some sort of data transformation that would need to occur to update the SamAccount names to Email addresses in the exported file from the Source instance. 

There are 3 files in the export.

1) config.xml

2) data/ativeobjects.xml

3) data/entities.xml

Is there a proposed approach on how we should go about updating the data in the file above ?  There are not only usernames but also Ids in these files.

 

We are only concerned about the data shared with the projects we are migrating. See export configuration below:

image.png

 

Your assistance would be much appreaciated.

 

Jira Server Version : 7.2.6

 

Regards,

Avinash

1 answer

0 votes
José Marañón [Awnaba Software S.L.]
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.
August 29, 2017

Hi Avinash,

I would suggest changing temporarily the LDAP mappings in one of the instances so that the usernames are equal in both instances. This change would only need to be in place at the moment of exporting (at the source) or when importing (if you choose to change it at the target).

Cheers!

DerivcoITServer August 30, 2017

Hi José,

We have made the change you suggested, and have exported the project again using the changed usernames. However, when attempting to do the import, it keeps failing with below message:

Import results:

Data import for project AC did NOT complete.

...

WARN 17:50:40,137 Missing 'email' field for User entry id = 17138
INFO 17:50:40,516 Project Import: Mapping the backed up data to data in the current system, and validating the mappings...
INFO 17:50:40,596 Project Import: Validation errors were found. The import cannot continue.
ERROR 17:50:40,596 The custom field 'Type of Request' requires option 'Roadmap' for the import but it does not exist in the current JIRA instance.
ERROR 17:50:40,596 The custom field 'On Roadmap' requires option 'Yes' for the import but it does not exist in the current JIRA instance.
ERROR 17:50:40,596 The custom field 'On Roadmap' requires option 'Yes' for the import but it does not exist in the current JIRA instance.

What would be causing this to happen?

Thanks for your assistance.

Kind regards,

Jason

 
José Marañón [Awnaba Software S.L.]
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.
August 31, 2017

Hi Jason,

This is a different issue. Please see this article in the plugin documentation for an explanation and a fix.

You are welcome!

Yevgen Lasman
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.
January 22, 2019

@DerivcoITServer you may also want to check whether you're affected by this JRASERVER-65734 issues.

Suggest an answer

Log in or Sign up to answer