Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC: Is there any way to delete work item links (such as trace to) in batch?

We have a bunch of work items with linkage. We like to delete every linkage on the work items in batch. Is there any way to accomplish this? Our RTC version is 4.0.6. 

Thank you!

1

1 vote


Accepted answer

Permanent link
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

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.




Clement Liu selected this answer as the correct answer

1 vote

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!


Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019

Question asked: Jan 29 '15, 9:53 a.m.

Question was seen: 4,088 times

Last updated: Jan 30 '15, 12:08 p.m.

Confirmation Cancel Confirm