Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

problem importing category

I've got everything importing from ClearQuest 7.1.1 to RTC 2.0.0.2 just fine except the category.

if I have the following:


<attribute sourceId="Project" targetId="com.ibm.team.workitem.attribute.category">
<value sourceId="*" targetId="" />
</attribute>

The records import, but Filed Against is 'Unassigned'.

The import adds to the work item categories list, but will not set the value for the records.

If I don't add then nothing imports.
 <value sourceId="*" targetId="" /> 


Not sure what to do next?

0 votes



9 answers

Permanent link
Having this value mapping in the category mapping means regardless of the value of the sourceId, the targetId should be set to the empty string which will result in the Unassigned category value.


<value>


You need to remove this value mapping.

Also, verify in the process configuration that you have the proper permissions when saving a work item.

0 votes


Permanent link
Sorry, I meant to remove the following value mapping:

<value sourceId="*" targetId="" />

0 votes


Permanent link
Thanks, I think I have the right permissions - the user importing is a "scrum master" and when I remove the line, nothing imports with no errors that I can find.

I've even tried <value sourceId="*" targetId="Migrated" /> without success.

It does appear to be permission, where should I check for correct permissions?

0 votes


Permanent link
Actually, I take back what I said about permissions. I think you have the correct permissions set, otherwise, you would have gotten a permissions error when importing.

Try the following experiment:

1). Remove the category value mapping so that you should only have the following category property mapping:

<attribute sourceId="Project" targetId="com.ibm.team.workitem.attribute.category" />

2). Import into a zip file and verify the contents of the Project field.

3). Import into the RTC project area using the zip file and the modified data mapping.

4). Check the value of the filed against field.

0 votes


Permanent link
Nothing added to the RTC project area and no errors. Here is an example of the exported XML I'm trying to import:

<xml>
- <bugzilla>
- <bug>
<dbid>33554869</dbid>
<bug_id>TECHR00000437</bug_id>
<Classification>Defect</Classification>
<Headline>Applet Viewer</Headline>
<Release_Build>7.5.01</Release_Build>
<Severity14>2 - High</Severity14>
<CR_Type>Functionality</CR_Type>
<Discovered>System</Discovered>
<State>Closed</State>
<Description>This defect is submittted to document a possible memory leak with the java plug-in. I've attached the error logs with the Out of memory error. Possible solutions is to upgrade the plugin to 1.4.2.06 and adjust Java runtime parameters.</Description>
+ <attachment>
<attachid>Cov error.txt</attachid>
<desc>
<filename>Cov error.txt</filename>
<size>1191</size>
</attachment>
+ <attachment>
<attachid>MEMBER ANNOTATE.txt</attachid>
<desc>
<filename>MEMBER ANNOTATE.txt</filename>
<size>1046</size>
</attachment>
+ <attachment>
<attachid>ar VIEW RECORDS.txt</attachid>
<desc>
<filename>ar VIEW RECORDS.txt</filename>
<size>3670</size>
</attachment>
+ <long_desc>
<who>james.a.price@navy.mil</who>
<bug_when>0005-03-04 01:36 -0600</bug_when>
<thetext>Installing Java plug-in 1.4.2.07 seems to have corrected this problem.</thetext>
</long_desc>
<history>3/2/05 9:12:17 AM CST</history>
<Resolution>Fixed Indirectly</Resolution>
<history>pricej</history>
<Project>Selection Boards</Project>
<Steps_to_Reproduce>Use the applet viewer as various roles and watch the performance degrade over time (icons not showing up, annotations, etc)</Steps_to_Reproduce>
<Owners>Jim Price</Owners>
</bug>
</bugzilla>


If I exclude that line, everything else seams to work - I've mapped all users to bob so far, but this is also working:

Summary Applet Viewer
Status Verified
Resolution Fixed Upstream
Description This defect is submittted to document a possible memory leak with the java plug-in. I've attached the error logs with the Out of memory error. Possible solutions is to upgrade the plugin to 1.4.2.06 and adjust Java runtime parameters.
Severity 2 - High
Found In 7.5.01
Project Area Test
Comments Installing Java plug-in 1.4.2.07 seems to have corrected this problem.
Imported from TECHR00000437.
Severity was: 2 - High
Added: attachment 42 (Cov error.txt), attachment 43 (MEMBER ANNOTATE.txt), attachment 44 (ar VIEW RECORDS.txt)
Origin (Bugzilla) Bugzilla TECHR00000437
Subscribed By added:
bob

Imported from TECHR00000437
Resolved By bob
Reproduce Steps Use the applet viewer as various roles and watch the performance degrade over time (icons not showing up, annotations, etc)


:?:

0 votes


Permanent link
Are you saying if you exclude the following line from the mapping file that all the other fields are imported successfully but if you do include the line that no record is imported?

<attribute>

You probably need to include your data mapping file.

0 votes


Permanent link
Yes, that is was is happening. Here is the mapping file:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>


<!--
*** Attachments & Notes_log imported if they exists ***

Usage:
- Removal of an <attribute> element will disable the import of the corresponding attribute
- Custom attributes will be added to the target work item if necessary
- Custom attributes are not created if they do not already exist in the corresponding project area
- If no explicit mapping for a value exists the mapping for source id "*" will be used if it exists
- Using source id "*" with an empty target id can be used to ignore unknown values
- If no explicit or "*" mapping for a value exists the original value will be used
-->

<mapping version="1">

<attribute sourceId="State" targetId="com.ibm.team.workitem.attribute.state">
<value sourceId="Submitted" targetId="1" />
<value sourceId="Assigned" targetId="1" />
<value sourceId="Opened" targetId="1" />
<value sourceId="Postponed" targetId="1" />
<value sourceId="Impacted" targetId="1" />
<value sourceId="Fixed" targetId="3" />
<value sourceId="Resolved" targetId="3" />
<value sourceId="Delivered_to_Test" targetId="3" />
<value sourceId="Closed" targetId="4" />
<value sourceId="Duplicated" targetId="4" />
<value sourceId="*" targetId="0" />
</attribute>

<attribute sourceId="Resolution" targetId="com.ibm.team.workitem.attribute.resolution">
<value sourceId="" targetId="0" />
<value sourceId="Fixed" targetId="1" />
<value sourceId="Duplicate" targetId="2" />
<value sourceId="Functions as Designed" targetId="3" />
<value sourceId="Enhancement Request" targetId="5" accurate="false" />
<value sourceId="Fixed Indirectly" targetId="8" />
<value sourceId="*" targetId="0" />
</attribute>

<!--
<attribute sourceId="Project" targetId="com.ibm.team.workitem.attribute.category"/>
<value sourceId="*" targetId="" />
</attribute>
-->
<attribute sourceId="history.action_timestamp" targetId="com.ibm.team.workitem.attribute.creationdate" />
<attribute sourceId="Resolved" targetId="com.ibm.team.workitem.attribute.resolutiondate" />

<attribute sourceId="Classification" targetId="com.ibm.team.workitem.attribute.workitemtype">
<value sourceId="Defect" targetId="defect" />
<value sourceId="Requirements Change" targetId="defect" />
<value sourceId="Enhancement" targetId="defect" />
</attribute>

<attribute sourceId="Headline" targetId="com.ibm.team.workitem.attribute.summary" />
<attribute sourceId="Description" targetId="com.ibm.team.workitem.attribute.description" />

<attribute sourceId="Steps_to_Reproduce" targetId="reproduce" />

<attribute sourceId="history.user_name" targetId="com.ibm.team.workitem.attribute.creator" />
<attribute sourceId="Owners" targetId="com.ibm.team.workitem.attribute.owner" />
<attributeType targetId="contributor">
<value sourceId="harrisk" targetId="bob" />
<value sourceId="fleenorj" targetId="bob" />
<value sourceId="hedgepethp" targetId="bob" />
<value sourceId="christyc" targetId="bob" />
<value sourceId="Mindee Wolven" targetId="bob" />
<value sourceId="*" targetId="" />
</attributeType>

<attribute sourceId="Priority" targetId="com.ibm.team.workitem.attribute.priority" />
<attributeType targetId="priority">
<value sourceId="1 - High" targetId="priority.literal.l11" />
<value sourceId="2 - Medium-High" targetId="priority.literal.l07" />
<value sourceId="3 - Medium" targetId="priority.literal.l07" />
<value sourceId="4 - Medium-Low" targetId="priority.literal.l07" />
<value sourceId="5 - Low" targetId="priority.literal.l02" />
<value sourceId="*" targetId="priority.literal.l01" />
</attributeType>

<attribute sourceId="Severity14" targetId="com.ibm.team.workitem.attribute.severity" />
<attributeType targetId="severity">
<value sourceId="1 - Catastrophic" targetId="severity.literal.l5" />
<value sourceId="2 - Major: No Work-around" targetId="severity.literal.l4" />
<value sourceId="3 - Major: With Work-around" targetId="severity.literal.l3" />
<value sourceId="4 - Minor" targetId="severity.literal.l2" />
<value sourceId="5 - Cosmetic" targetId="severity.literal.l2" />
<value sourceId="6 - Internal" targetId="severity.literal.l1" />
<value sourceId="N/A" targetId="severity.literal.l1" />
</attributeType>

<attribute sourceId="Release_Build" targetId="com.ibm.team.workitem.attribute.version"/>

<attribute sourceId="Production_Release" targetId="com.ibm.team.workitem.attribute.target" />

<attribute sourceId="Classification" targetId="com.ibm.team.workitem.attribute.tags"/>
<attributeType targetId="tags">
<value sourceId="Requirements Change" targetId="Requirements_Change" />
<value sourceId="Enhancement" targetId="Enhancement" />
<value sourceId="*" targetId="" />
</attributeType>

<attribute sourceId="DuplicateOf" targetId="com.ibm.team.workitem.rcp.core.is_dup_of"/>
<attribute sourceId="Duplicated_By" targetId="com.ibm.team.workitem.rcp.core.duplicates"/>

</mapping>

0 votes


Permanent link
I think we need to take a closer look at your environment. Please open a ticket with support.

0 votes


Permanent link
Thanks, the support ticket number is 90706 005 000

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Sep 13 '10, 12:17 p.m.

Question was seen: 6,009 times

Last updated: Sep 13 '10, 12:17 p.m.

Confirmation Cancel Confirm