It's all about the answers!

Ask a question

CQ Connector mapping CQ defect to work item type defect


Thomas Loeber (62237750) | asked Feb 22 '10, 12:24 p.m.
JAZZ DEVELOPER
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>

One answer



permanent link
Lorelei Ngooi (1.5k22) | answered Feb 22 '10, 12:44 p.m.
JAZZ DEVELOPER
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>

Your answer


Register or to post your answer.