mapping Bugzilla comments into a single work item field
Similar to another posting of mine (see http://jazz.net/forums/viewtopic.php?t=12691), I need to be able to map an entire comment thread from Bugzilla into a single work item text field. That is, instead of the default mapping from the Bugzilla comments into a work item discussion (which works rather nicely), I need the comment user id, date/time, and comment text to all be mapped in a single work item field (Large String), concatenating all of the comments into this single field. For example, if Bugzilla had:
-----------------------------------------------------------------------------
|Comment #1 From Tim 2010-09-15 12:00:00
|
|Some comment text...
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
|Comment #1 From Sue 2010-09-15 12:02:00
|
|Some more comment text...
|----------------------------------------------------------------------------
That would all show up as a field in an RTC work item as:
Bugzilla comments field
Comment #1 From Tim 2010-09-15 12:00:00
Some comment text...
Comment #1 From Sue 2010-09-15 12:02:00
Some more comment text...
-----------------------------------------------------------------------------
|Comment #1 From Tim 2010-09-15 12:00:00
|
|Some comment text...
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
|Comment #1 From Sue 2010-09-15 12:02:00
|
|Some more comment text...
|----------------------------------------------------------------------------
That would all show up as a field in an RTC work item as:
Bugzilla comments field
Comment #1 From Tim 2010-09-15 12:00:00
Some comment text...
Comment #1 From Sue 2010-09-15 12:02:00
Some more comment text...
3 answers
On the actual bug data that will be imported into RTC that you've exported from bugzilla. The fact that are thousands shouldn't matter much - just means you have to process each file with the same logic.
Literally change the individual XML entries in a file for each comment to merge them into one comment entry.
There are many technologies that you could do this with XLST, Java, perl, etc.
It's not pretty but it is doable...
Literally change the individual XML entries in a file for each comment to merge them into one comment entry.
There are many technologies that you could do this with XLST, Java, perl, etc.
It's not pretty but it is doable...