Closed (duplicate)
Project:
Migrate Extras
Version:
7.x-2.x-dev
Component:
Migrate Extras Features
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2010 at 02:21 UTC
Updated:
4 Oct 2012 at 20:50 UTC
Hi, I need to import support tickets, comments, and users from a Trac installation and Migrate seems like the best way to do it. Does any one know if any work has been done to support Project Issues?
I'll probably end up doing the work myself if there's nothing, so any suggestions on the best example code to look at to get me started would be great too.
thanks
Comments
Comment #1
frankcarey commentedI haven't used the project module, but I'm guessing that it's basically a node? The first thing to do is dig into the guts of the project module and find out how to save a project node using code. You can do this without touching migrate module. Once you have a handle on how they do that in their code, then look at any of the integrations in migrate extras to get an idea of how migrate saves objects.
Comment #2
micheleannj commentedThanks,
I've started outlining a new project_issues.migrate.inc file, but I'm a little confused as to whether I'll have to deal with users & comments in my code, or if I can build on what migrate can already deal with (ie all the basic node stuff, with a couple of extra Project Issue-specific fields).
I appreciate you're help while I try and wrap my head around this!
m
Comment #3
frankcarey commentedYeah, I wouldn't try to reinvent the wheel. I assume that Project Issues doesn't use CCK fields, so then you would just need to add the fields to the node.
see http://drupal.org/files/issues/459236_nostylefixes.patch as an example. Because nodes are already a migrate type, all you should have to do is to add the fields using a couple hooks in your project_issues.migrate.inc
Comment #4
mikeryanMigrate and Migrate Extras V1 are no longer supported, moving request to V2.
Comment #5
mikeryanBeing worked on within Project: #1549402: Provide a D6 to D7 data migration path for project_issue and comments.