Project

General

Profile

Patch #4535 ยป migrate_from_mantis.rake.patch

Wim Heirman, 2010-01-07 23:25

View differences:

migrate_from_mantis.rake 2010-01-07 22:24:25.000000000 +0000
:updated_on => bug.last_updated
i.author = User.find_by_id(users_map[bug.reporter_id])
i.category = IssueCategory.find_by_project_id_and_name(i.project_id, bug.category[0,30]) unless bug.category.blank?
i.fixed_version = Version.find_by_project_id_and_name(i.project_id, bug.fixed_in_version) unless bug.fixed_in_version.blank?
if not bug.fixed_in_version.blank?
i.fixed_version = Version.find_by_project_id_and_name(i.project_id, bug.fixed_in_version)
elsif not bug.target_version.blank?
i.fixed_version = Version.find_by_project_id_and_name(i.project_id, bug.target_version)
end
i.status = STATUS_MAPPING[bug.status] || DEFAULT_STATUS
i.tracker = (bug.severity == 10 ? TRACKER_FEATURE : TRACKER_BUG)
i.id = bug.id if keep_bug_ids
    (1-1/1)