RTC: Is there any way to delete work item links (such as trace to) in batch?
Accepted answer
Clement, you could use the plain Java API to do that. As far as I know there is nothing out there that supports this out of the box. You would write something based on e.g. https://rsjazz.wordpress.com/2013/11/06/creating-clm-links-with-back-link/ (the client part) and instead of
getWorkingCopy().getAdditionalSaveParameters().add(
IAdditionalSaveParameters.UPDATE_BACKLINKS);
I am working on a second version of https://rsjazz.wordpress.com/2015/01/12/a-rtc-workitem-command-line/ that will be able to remove links, but it will take some weeks to get it published.
workingCopy.getReferences().add(....you would use
workingCopy.getReferences().remove(....and also
getWorkingCopy().getAdditionalSaveParameters().add(
IAdditionalSaveParameters.UPDATE_BACKLINKS);
I am working on a second version of https://rsjazz.wordpress.com/2015/01/12/a-rtc-workitem-command-line/ that will be able to remove links, but it will take some weeks to get it published.
Comments
PS: the UPDATE_BACKLINKS is needed for CLM links e.g. to RQM, Doors Next as well as tracks relationships.
Also see https://rsjazz.wordpress.com/2012/09/19/the-rtc-workitem-link-api-linking-workitems-to-other-elements/ - at the end there is a loop that analyzes all links. You can basically use the process - get all references, then iterate all of them and remove them - or only certain endpoint types.
Hi Ralph, got it. Thank you!