Skip to content

Scintilla/Migrate-Redmine-to-Gitlab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Migrate Redmine to Gitlab

Ruby script to transfer all tickets from Redmine to Gitlab

You need to have access to the gitlab console and an api key to redmine for this to work.

This script worked for me. I take no responsibility for any damage or loss incurred as a result of using this script with or without changes made to it.

Setup

  • Clone this repo on the server where your gitlab is hosted.
  • Edit the config.rb with the correct information (most important are HOST, API_KEY and USER_CONVERSION).
  • Change the DEBUG_STATE for the amount of output you want.
  • Execute the following command as a user that is allowed to use the gitlab console (e.g. gitlab or root)
gitlab-rails runner /path/to/repo/clone/migrate.rb -e production

Versions

  • Redmine version >=1.4
  • GitLab Community Edition 8.0.4 1ff385d
  • Ubuntu 14.04

Notes

  • Not editing USER_CONVERSION and DEFAULT_ACCOUNT, will result in all issues and comments to be linked to the root account of gitlab.
  • When issues and comments are linked to the DEFAULT_ACCOUNT, the original Redmine user will be mentioned.
  • For a cleaner result the DEFAULT_ACCOUNT should not be in the list of USER_CONVERSION.
  • Redmine can have custom features, if you want to add those to gitlab as labels add their id to CUSTOM_FEATURES.
  • If your Redmine has custom priorities or statuses add them to the correct lists (PRIORITIES, OPEN_VALUES and CLOSED_VALUES).
  • Script version 2.1

About

Migrate Redmine to Gitlab

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%