How do we stop duplicate categories being created when importing work items from a csv file?
We are successfully importing work items from a csv file but are seeing duplicate categories created. Specifically the import sometimes has items with a category and sometimes with the same category and a sub-category. This is causing the category to be created twice, once as a category with no sub-categories and again as a category with sub-categories. When writing a query there are then 2 identically named categories to chose from which return different work items i.e. those with just the category and those with the category and a sub-category. This looks like a bug? As a work-around we could create a dummy 'Unassigned' sub-category in the csv file so that all items have both a category and sub-category.
Accepted answer
Given Martins comment
Martin, if this summarizes the matter, please accept.
I have investigated further and it doesn't occur if the single category import item occurs first, but the problem does occur if a single category import item occurs after a category/sub-category item e.g. with the following csv import file 'Category1' is listed twice on the 'Work Item Categories' tab.I would suggest to make sure to create the categories or to provide work items in an order that creates the categories. I would also suggest to create a defect, as I would expect the categories to be created correctly.
"Type","Filed Against","Summary"
"Task","Category1" / "Sub-Category1","task 4"
"Task","Category1" / "Sub-Category2","task 5"
"Task","Category1","task 6"
Martin, if this summarizes the matter, please accept.
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Nov 11 '14, 8:15 a.m.Martin McAuley
Nov 11 '14, 8:38 a.m.sam detweiler
Nov 11 '14, 8:46 a.m.Martin McAuley
Nov 11 '14, 9:19 a.m.sam detweiler
Nov 11 '14, 10:08 a.m.Martin McAuley
Nov 11 '14, 10:39 a.m.Rosa Naranjo
FORUM MODERATOR / JAZZ DEVELOPER Nov 12 '14, 4:51 p.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Nov 13 '14, 3:13 a.m.