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

CQ Connector mapping CQ defect to work item type defect

Why am I getting this incoming sync error?
java.lang.RuntimeException: Please specify a work item type by creating a property mapping in the sync rule that determines its value.
I believe I have the mapping correct. Below is the section from the sync rule which does this mepping.
<name>com.ibm.rational.clearquest.UCMInterop.Defect</name>
<externalTypeName>com.ibm.rational.clearquest.Defect</externalTypeName>
<syncItemTypeName>WorkItem</syncItemTypeName>
<syncItemTypeNsURI>com.ibm.team.workitem</syncItemTypeNsURI>
<syncItemTypeQualifier>Type:defect</syncItemTypeQualifier>
<itemManager>com.ibm.team.interop.service.managers.workitem.WorkItemManager</itemManager>
<externalManager>com.ibm.team.interop.service.managers.clearquest.CQExternalManager</externalManager>
<maxCycleCount>10</maxCycleCount>
<syncAllItemStates>true</syncAllItemStates>

0 votes



One answer

Permanent link
The Item type qualifier field is used to indicate that the sync rule applies to a specific type of work item or a category of work item types. You still need to specify how to set the work item type by creating a work item type property mapping. You can set the work item type to always be defect by having the property mapping look like the following:

<propertyMapping>
<externalPropertyName></externalPropertyName>
<itemPropertyName>Type</itemPropertyName>
<incoming>true</incoming>
<outgoing>false</outgoing>
<itemIdentifier>false</itemIdentifier>
<externalIdentifier>false</externalIdentifier>
<externalModifier>false</externalModifier>
<requiredItemProperties></requiredItemProperties>
<requiredExternalProperties></requiredExternalProperties>
<valueMappings>
<valueMapping>
<externalValue></externalValue>
<itemValue>defect</itemValue>
<defaultExternalValue>false</defaultExternalValue>
<defaultItemValue>true</defaultItemValue>
</valueMapping>
</valueMappings>
</propertyMapping>

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: Feb 22 '10, 12:24 p.m.

Question was seen: 5,188 times

Last updated: Feb 22 '10, 12:24 p.m.

Confirmation Cancel Confirm