It's all about the answers!

Ask a question

Has anyone tried Bugzilla to Jazz work item migration?


Guowei Jim Hu (1.0k910353) | asked Dec 03 '08, 12:55 p.m.
Please can you share your experience and post sample XML files you used to do the export from Bugzilla, import to Jazz and the mapping gfile if you use?

25 answers



permanent link
Lorelei Ngooi (1.5k22) | answered Aug 18 '09, 11:46 a.m.
JAZZ DEVELOPER
I don't think it's a bug with the Bugzilla importer. The xml file representing the Bugzilla bug is from Bugzilla not the Bugzilla importer. Also, the Bugzilla importer can handle a mapping file with an entry for the description field.

A workaround would be to modify the Bugzilla xml file by adding a separate description tag and moving the content of the text of the first long desc tag into this field. Then add a mapping for the description field.

Example mapping entry for the description field:
<attribute sourceId="description" targetId="com.ibm.team.workitem.attribute.description" />

permanent link
Daniel Meyer (7186) | answered Aug 19 '09, 1:27 a.m.
Example mapping entry for the description field:
<attribute>


I tried that but it doesn't work. I get a java error saying: "java.lang.NullPointerException". I tried to use another name for the sourceId, still the same.

Looks to me that bugzilla importer limits the abilites to the bugzilla specification, and does not allow any flexabiltity to overcome such problems.

permanent link
Work Item & UI Commons Team (1.3k1) | answered Aug 19 '09, 4:04 a.m.
DanielM wrote:
lngooiwrote:
Example mapping entry for the description field:
attribute

I tried that but it doesn't work. I get a java error saying:
"java.lang.NullPointerException". I tried to use another
name for the sourceId, still the same.


Can you open a bug report on this against 'Work Item' filling out all
details. Thanks.

--
Benjamin Pasero
Work Item & UI Commons Team

permanent link
Guowei Jim Hu (1.0k910353) | answered Aug 19 '09, 11:59 a.m.
We are actually on 2.0. Do you have a simple example of a xml for this you could post here?

The question is in which tag is the description of the bug, when the comments are in long_desc?


You'll need to modify two XML files to get it work:
One is Bugzilla report in XML format and here you need to have an entry like:
<description>Description\<description>

The other file is the mapping file used by the importer and oyu need to have an entry like:
<attribute>
<attributeType>
<value>
</attributeType>

permanent link
Guowei Jim Hu (1.0k910353) | answered Aug 19 '09, 12:02 p.m.
Need to use the code tag:


	

<attribute>
<attributeType>
<value>
</attributeType>

permanent link
Guowei Jim Hu (1.0k910353) | answered Aug 20 '09, 12:14 p.m.
Guess I acted too fast.

I was told that the <description> attribute would work on 2.0 but apprently it is not.

I just tested on my 2.0 server and the importer can't pick up and fill the Description attribute. I still have to use the <desc_long> field to get it work but of course you end up with a duplicated Description entry in the Comments attribute too, just like in 1.0.1.1.

permanent link
Lorelei Ngooi (1.5k22) | answered Aug 20 '09, 3:42 p.m.
JAZZ DEVELOPER
If that is true, then it is a bug. Please submit a work item on that.

permanent link
Guowei Jim Hu (1.0k910353) | answered Aug 20 '09, 4:45 p.m.
If that is true, then it is a bug. Please submit a work item on that.


Lorelei,
Will do after I run another around of import test tomorrow.

permanent link
Work Item & UI Commons Team (1.3k1) | answered Aug 21 '09, 4:44 a.m.
ghu wrote:
lngooiwrote:
If that is true, then it is a bug. Please submit a work item on
that.

Lorelei,
Will do after I run another around of import test tomorrow.


Thanks, please add me as subscriber.

--
Benjamin Pasero
Work Item & UI Commons Team

permanent link
Guowei Jim Hu (1.0k910353) | answered Aug 21 '09, 3:27 p.m.
I was going to submit a bug report for the duplicated Decription display issue supposed to be fixed on 2.0 RTC.

But as I prepare the mapping file, I found out that I commented off the entry for <description> attribute when used it to do the import.

So I gave it another try and it works this time. We finally get rid off the redundante display of the bug Description in both RTC Description and Comments attribute.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.