Project

General

Profile

Actions

task #6029

closed

task #6028: Post-migration (trac->redmine) fixes

trac resolution to redmine status mapping invalid for `wontfix` and `invalid`

Added by Andreas Kohlbecker over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Highest
Category:
devOps
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Severity:
normal

Description

The resolution is migrated correctly to the redmine custom field Resolution but the Status always is closed, see for example #5776

The mapping is defined correctly in the rake script migrate_from_trac.rake

RESOLUTION_STATUS_MAPPING = {
          # trac resolution name => redmine status or status name (names will be replaced by the actual status)
          'fixed' => closed_status,
          'invalid' => rejected_status,
          'wontfix' => rejected_status,
          'worksforme' => 'Worksforme',
          'duplicate' => 'Duplicate'
      }

The fix of this problem might involve fixing the status change in the last issue_journal records of the affected issues and also setting the final status of the issue.
This should most probably be done in the database directly. Needs testing before!


Files

fix-ticket-status.awk (505 Bytes) fix-ticket-status.awk Andreas Kohlbecker, 09/15/2016 10:44 AM
fix-ticket-resolutions.sh (460 Bytes) fix-ticket-resolutions.sh Andreas Kohlbecker, 09/15/2016 10:44 AM
fix-ticket-status.awk (507 Bytes) fix-ticket-status.awk Andreas Kohlbecker, 09/20/2016 05:50 PM
Actions

Also available in: Atom PDF