Migration JIRA to Redmine
Added by Heribert Gasparoli about 3 years ago
Hello all
First of all, I have to say that I have never dealt with Ruby and Rails before:
I need to migrate Jira to Redmine. In my attempt with "migrate_jira.rake" the rake always breaks when reading issues:
1. first it reads all users => works fine
2. then it reads the first project => works fine
3. then it reads the first issue => abort
rake aborted!
NoMethodError: undefined method `each' for nil:NilClass
/home/hga/redmine/lib/tasks/migrate_jira.rake:227:in `retrieve'
/home/hga/redmine/lib/tasks/migrate_jira.rake:79:in `migrate'
/home/hga/redmine/lib/tasks/migrate_jira.rake:575:in `block (3 levels) in <top (required)>'
/home/hga/redmine/lib/tasks/migrate_jira.rake:573:in `each'
/home/hga/redmine/lib/tasks/migrate_jira.rake:573:in `block (2 levels) in <top (required)>'
/home/hga/.rvm/gems/ruby-2.6.8/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/home/hga/.rvm/gems/ruby-2.6.8/bin/ruby_executable_hooks:22:in `eval'
/home/hga/.rvm/gems/ruby-2.6.8/bin/ruby_executable_hooks:22:in `<main>'
Tasks: TOP => jira_migration:do_all_migrations => jira_migration:migrate_issues
(See full trace by running task with --trace)
I hope someone can give me a tip on how to make it work.
Thank you in advance
Hello all
I forgot to say that I work with Redmine 4.2.3 in WLS2 Ubuntu 20.04
ruby 2.6.8p205 (2021-07-07 revision 67951) [x86_64-linux]
Rails 5.2.6
migrate_jira.rake (18.2 KB) migrate_jira.rake |
Replies (13)
RE: Migration JIRA to Redmine - Added by Jörg Heyer almost 3 years ago
Hello,
do you find a solution for your problem? I am also searching for a way to migrate from Jira to Redmine.
Thank you
Best regards
Joerg
RE: Migration JIRA to Redmine - Added by Heribert Gasparoli almost 3 years ago
Yes,but:
My company gave me the task of making it work. A big task. The code size is now more than twice as big.
The individual rakes had to be enlarged. New ones had to be written. A lot of things were missing. For example: the customs fields. The workflows are read in too simplified. The statuses do not correspond to the specifications, etc.
To share my solution, I have to wait for the ok from my company first.
RE: Migration JIRA to Redmine - Added by Jörg Heyer almost 3 years ago
Thank you very much for the answer.
In the meantime I have made some progress. I found out that there was data in the JIRA backup through a plug-in, which is why the importer could not handle the backup file.
Furthermore, the users were not assigned to the projects.
Yes the customfields are among other things still a problem, so I am of course very curious whether the release of your company get.
RE: Migration JIRA to Redmine - Added by Heribert Gasparoli almost 3 years ago
The users who are not assigned to projects can be fished out in this way:
def self.parse_anonymous_users()
log_ids=[]
$doc.elements.each("entity-engine-xml/AuditChangedValue[@name='Username']") do |node|
delta_to = node.attributes.get_attribute("deltaTo").value if node.attributes.get_attribute("deltaTo")
if !$MIGRATED_USERS_BY_USERNAME[delta_to]
log_id = node.attributes.get_attribute("logId").value if node.attributes.get_attribute("logId")
if log_id
log_ids.push(log_id)
end
end
end
log_ids
end
RE: Migration JIRA to Redmine - Added by Jörg Heyer almost 3 years ago
Thank you very much,
How satisfactory was the transition from Jira to Redmine?
RE: Migration JIRA to Redmine - Added by Heribert Gasparoli almost 3 years ago
95%
Small corrections to the workflow are still necessary manually.
20 projects, some of them large, migrated within 2 hours. Post-corrections approx. 3 hrs.
Various plug-ins were migrated as custom fields. These do not make sense. Manually deleted in Redmine.
One of the plugins that has been adopted as a custom field is:
Epic Colour:
Description:
The Epic Colour field is for use with Jira software only.
RE: Migration JIRA to Redmine - Added by Heribert Gasparoli almost 3 years ago
Hello Jörg Heyer
My boss agrees in principle that we share the "migrate_jira.rake" with you, but he still has a few questions and would like you to contact him.
Could you have a quick chat with him?
Best regards
RE: Migration JIRA to Redmine - Added by Jörg Heyer almost 3 years ago
Hello Heribert Gasparoli,
I have sent an e-mail to Mr Uhde, thank you very much.
Best regards
Jörg Heyer
RE: Migration JIRA to Redmine - Added by Alexey Prizov almost 3 years ago
Hi, did you get an answer?
I've also written an email.
It would save a ton of time for our team.
RE: Migration JIRA to Redmine - Added by Alex Matveev over 2 years ago
I have recently moved our company Jira to Redmine, fairly complex (data accumulated > 10 years), ~500 users, ~100 projects, ~100 000 issues.
https://gitlab.com/rk86/redmine-jira-import
It is not simple, multi-step process, if you expect one-click solution - this is not (and I don't believe there could be).
Basically I needed to learn Ruby (to some level) just to be able to handle this task.
I would be glad if it helps anybody.
Regards,
Alex
RE: Migration JIRA to Redmine - Added by Heribert Gasparoli over 2 years ago
Helo Alex
My boss agrees in principle that we share the "migrate_jira.rake" with you, but he still has a few questions and would like you to contact him.
Could you have a quick chat with him?
Best regards
Heribert
RE: Migration JIRA to Redmine - Added by Alex Matveev over 2 years ago
Heribert,
Sorry, your comment makes no sense.
All my source code is available on the link I provided, if it helps anybody - great.
No agreement of "sharing" is required.
Neither I need any help from you - our migration is done.
Alex
RE: Migration JIRA to Redmine - Added by Heribert Gasparoli over 2 years ago
Sorry Alex
I read it wrong. Not quite awake yet.
best regards