redminealmtuleap

how can I migrate issues from redmine to tuleap


Originally we use Redmine as issue management system, now we are planning to migrate to Tuleap system.

Both system have features to import/export issues into .csv file.

I want to know whether there is standard / simple way to migrate issues.

The main items inside issues are status, title and description.


Solution

  • Since both system can export the csv file, which contains the item header that they needed, some header is different.

    It needs scripts to map from one system to another system, code snippet is shown below.

    It can work for other ALM system if they don't support from application (I mean migration).

    #!/usr/bin/env python
    import csv
    import sys
    
    # read sample tuleap csv header to avoid some field changes
    tuleapcsvfile = open('tuleap.csv', 'rb')
    reader = csv.DictReader(tuleapcsvfile)
    to_del = ["remaining_effort","cross_references"]
    # remove unneeded items
    issueheader = [i for i in reader.fieldnames if not i in to_del]
    
    # open stdout for output
    w = csv.DictWriter(sys.stdout, fieldnames=issueheader,lineterminator="\n")
    w.writeheader()
    
    # read redmine csv files for converting
    redminecsvfile = open('redmine.csv', 'rb')
    redminereader = csv.DictReader(redminecsvfile)
    for row in redminereader:
        newrow = {}
        if row['Status']=='New':
            newrow['status'] = "Not Started"
        # some simple one to one mapping
        newrow['i_want_to' ]= row['Subject']
        newrow['so_that'] = row['Description']
        w.writerow(newrow)
    

    some items in exported csv can't be imported back in tuleap like remaining_effort,cross_references.

    These two items are shown inside exported .csv file from tuleap issues.