CQ Connector mapping CQ defect to work item type defect
![](http://jazz.net/_images/myphoto/b3c9b2d50859c256ad66120b40423538.jpg)
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>
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
![](http://jazz.net/_images/myphoto/b3c9b2d50859c256ad66120b40423538.jpg)
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>
<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>