How can I delete "copies" and "copied from" from my work items? Maybe using the Java API?
Hello there, we had to create a huge amount of epics/user stories lately; and unfortunately our admin did not allow us to create "team specific" work item templates. So many of us used the "duplicate" feature on work items to save some typing. That works fine ... but in the end ... you end up with many work items that have useless (therefore distracting) "copies" resp. "copied from" links. I really would like to get rid of those. Long story short: is there any way to do that (obviously the UI doesnt allow it)? I put together some java code that allowed me to fix the summary string of some work items; but I couldnt find any way to delete these "duplications artifacts". Any idea, anybody? |
Accepted answer
OK, found the answer myself. The API I used is deprecated, but it worked when running against RTC3.
void fix(IWorkItem workItem) throws TeamRepositoryException { Ralph Schoon selected this answer as the correct answer
Comments
Michael A.
commented Jul 29 '14, 8:59 a.m.
Hi Edwin,
Actually the most important code is already posted; but if you drop me an email to edgue at web dot de I will send you the missing parts. |
One other answer
I just have the same issue and found another option myself (for RTC 5.0.x / RTC 6.0).
We can use CSV export/import for workitems to remove the "Copied from" Link (and Copies to link as well). 1. Using Eclipse Client, export Workitem ID and Copied From link info as csv file. Such like ID,Copied from 10,#3 2. Remove the value of "Copied from" in csv and save the file. ID, Copied from 10, 3. Import worrkitems from csv file using "Update matched Work Item" and "Replace existing links with newly imported values" options. Hope this helps. |
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.