How to delete dangling "mentioned by" lins from deleted work items?
One answer
Normally those links should be deleted, but they are not due to a bug.
273166: Deleting a work item does not delete a mentions link that is made from it
There is a workaround mentioned in the WI to delete the links by importing modified CSV file:
- create a query that will collect all the work items with such dead links
- CSV export query with default column values
- edit CSV file
- add a column "Mentioned By"
- for each work item in CSV file, either add a blank value "" or keep valid links only
- save CSV file
- CSV import this file. Select to:
- update existing work items
- replace existing links with newly imported values
- import
--> dead links are removed
This workaround is not guaranteed to work, so please test it before trying on production data.
273166: Deleting a work item does not delete a mentions link that is made from it
There is a workaround mentioned in the WI to delete the links by importing modified CSV file:
- create a query that will collect all the work items with such dead links
- CSV export query with default column values
- edit CSV file
- add a column "Mentioned By"
- for each work item in CSV file, either add a blank value "" or keep valid links only
- save CSV file
- CSV import this file. Select to:
- update existing work items
- replace existing links with newly imported values
- import
--> dead links are removed
This workaround is not guaranteed to work, so please test it before trying on production data.