Kulgar / jira2redmine

Script for import from JIRA to redmine
31 stars 27 forks source link

Migrated Users are not shown under redmine only deleted-user is created in redmine #10

Open manugbhat opened 9 years ago

manugbhat commented 9 years ago

JIRA 6.4-OD Cloud. Redmine 2.6

Projects, Issues,Trackers are migrated successfully but the user migration and the attachments are not migrated Here is the output of UserMigrate rake job

root@linux:/opt/bitnami/apps/redmine/htdocs# rake jira_migration:migrate_users RAILS_ENV="production" User Load (0.6ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') User Load (2.9ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND users.login = 'deleted-user' Found JIRA user: krishnaraj Found JIRA user: mkatre Found JIRA user: vanand Found JIRA user: pmadatha Found JIRA user: lakshmi Found JIRA user: sysadmin Found JIRA user: admin Found JIRA user: dijo Found JIRA user: amahajan Found JIRA user: addon_lucidchart-app Found JIRA user: madhuri_mukkamala Found JIRA user: smadhav Found JIRA user: vdixit Found JIRA user: ashok Found JIRA user: smiriyala Found JIRA user: ssharma Found JIRA user: madhunat Found JIRA user: manu Found JIRA user: hari Found JIRA user: vignesh Found JIRA user: ashokraj@thinking-code.com Found JIRA user: piyush@thinking-code.com Found JIRA user: deepak Found JIRA user: sathish Found JIRA user: prabhat User Load (3.3ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'krishnaraj@thinking-code.com') LIMIT 1 User Load (2.6ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'meera@thinking-code.com') LIMIT 1 User Load (0.5ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'vinod@thinking-code.com') LIMIT 1 User Load (0.5ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'padmaraj@thinking-code.com') LIMIT 1 User Load (0.4ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'lakshmi@thinking-code.com') LIMIT 1 User Load (0.4ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'sysadmin@localhost') LIMIT 1 User Load (0.4ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'prashanth@thinking-code.com') LIMIT 1 User Load (0.4ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'dijo@thinking-code.com') LIMIT 1 User Load (0.5ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'ankush@thinking-code.com') LIMIT 1 User Load (0.4ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'noreply@mailer.atlassian.com') LIMIT 1 User Load (0.4ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'madhuri_mukkamala@softforceapps.com') LIMIT 1 User Load (0.4ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'soumya@thinking-code.com') LIMIT 1 User Load (0.4ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'vdixit@cerridsolutions.com') LIMIT 1 User Load (0.5ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'ashok@thinking-code.com') LIMIT 1 User Load (0.4ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'sravanthi@thinking-code.com') LIMIT 1 User Load (0.4ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'swapnil@thinking-code.com') LIMIT 1 User Load (0.4ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'madhu@thinking-code.com') LIMIT 1 User Load (0.4ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'manu@thinking-code.com') LIMIT 1 User Load (1.8ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'hari@thinking-code.com') LIMIT 1 User Load (1.2ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'vigneshwar@thinking-code.com') LIMIT 1 User Load (0.4ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'ashokraj@thinking-code.com') LIMIT 1 User Load (0.4ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'piyush@thinking-code.com') LIMIT 1 User Load (0.4ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'deepak@thinking-code.com') LIMIT 1 User Load (0.5ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'sathish@thinking-code.com') LIMIT 1 User Load (0.4ms) SELECT users.* FROM users WHERE users.type IN ('User', 'AnonymousUser') AND (LOWER(mail) = 'prabhat.ranjan@cerridsolutions.com') LIMIT 1 Migrated Users

Need urgent help , since we are in the middle of migration .

Help appreciated.

Thanks, Suvrat

manugbhat commented 9 years ago

Had to create dummy users in redmine with matching email ID's . Users have been successfully migrated.

Also, is there anyway if this can migrate groups and permissions as well?

Thanks