An error when synchronized a data with CQ Connector
I configured CQ Connector, and the configuration looked good. But When i tested the connector, there was a imcoming error:
"java.lang.IllegalArgumentException: Work item type Defect does not exist." I don't know why, beacuse this work item type is common. My synchronization rule is Item type: WorkItem-com.ibm.team.workitem Item type qualifier: Defect Item manager: Work Item Manager External repository:cqconnector External manager: ClearQuest Manager(non-user records) External type: Defect- com.ibm.rational.clearquest |
5 answers
Could you please send us the xml "source" version of the sync rule? Rich Piazza Jazz CQ Connector Team |
Work item type names are case-sensitive, and in the Eclipse Way process template, for example, the type id is "defect", with a lower-case 'd'. So if your type id is also spelled "defect", you will need to a define a mapping from "Defect" to "defect" in your sync rule (assuming you're mapping from the CQ record type name).
|
I added a value mapping from "Defect" to "Defect". Whatever "Defect" to "defect" or "defect" to "Defect"
It reported an error: "com.ibm.team.repository.common.TeamRepositoryException: There is no mapping defined for value "null" of property "Defect" in synchronization rule cqconnector"
|
Unfortunately, this sync rule has a number of issues and needs to be redone. There are too many incidences of property mappings for reference fields that don't have a corresponding external property and also don't have a reference sync rule (DependsOn, Related, Owner, etc).
Also, I'm not sure what you are trying to do with the Defect item property mapping, which doesn't exist as a work item property. That should probably be removed. Perhaps you were trying to use this to map to the work item type, but this is not the way to do it. Any kind of enumeration-like values such as priority, severity, state, and resolution that don't exactly map to a Jazz priority and severity value need a value mapping to map between the different values in the two systems. For example, CQ may have a priority value of "1-Resolve Immediately", but in Jazz, you want to map it to "High". Category, attachment, and comments are not setup properly and there are other problems. The current error that you are getting is related to the work item Type property mapping. This is an example of an enumeration-like value that is not an exact match in the two systems. In CQ, the record_type value would be "Defect" and in Jazz, the work item type value would be "defect". You need a value mapping to map the CQ "Defect" to Jazz "defect". <valueMapping> <externalValue>Defect</externalValue> <itemValue>defect</itemValue> <defaultExternalValue>false</defaultExternalValue> <defaultItemValue>true</defaultItemValue> </valueMapping> Use the sync rule editor to make the changes to the sync rule. Please look to the online help for guidance in configuring your sync rule, https://jazz.net/help/rational-team-concert/1.0.1/topic/com.ibm.team.connector.cq.doc/topics/t_planning_synch_rules.html and https://jazz.net/help/rational-team-concert/1.0.1/topic/com.ibm.team.connector.cq.doc/topics/t_create_sync_rules.html. There's also a wiki page for writing sync rules, https://jazz.net/wiki/bin/view/Main/WritingSyncRules. |
Also, sample sync rules are provided in the <CQ>gateway\sample\syncRules directory.
|
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.