Creating work item categories and associated teams in batch
![](http://jazz.net/_images/myphoto/b3c9b2d50859c256ad66120b40423538.jpg)
When doing a migration of defect type records from ClearQuest to RTC using the CQ Importer from the RTC client, there doesn't seem to be a way to create the needed work item categories in the target project to map to the ClearQuest Product/component structure. The ClearQuest schema I'm working with has product and component fields which we want to map to work item categories in RTC. We know we can use concatenation in the mapping file like
attribute sourceId="Product/Component" targetId="com.ibm.team.workitem.attribute.category"
and this will import the defects with the proper Filed Against value.
The dilemma is how to create the actual categories in the project. Is there a way to do this in batch using an API?
attribute sourceId="Product/Component" targetId="com.ibm.team.workitem.attribute.category"
and this will import the defects with the proper Filed Against value.
The dilemma is how to create the actual categories in the project. Is there a way to do this in batch using an API?
5 answers
![](http://jazz.net/_images/myphoto/b3c9b2d50859c256ad66120b40423538.jpg)
Not sure if I understand your question. The CQ Importer will create the work item categories on the fly if they don't already exist for the project area.
In reading my original post, I see I failed to explain clearly. The team migrating wants to take the opportunity to restructure this product/component/sub-component hierarchy. Basically do some renaming so, in reality, these work item categories may not be the same names as the source in CQ. In the instances where they don't match, we want to create them upfront, prior to the migration.