How can I remove Validated By (links from RM to RQM) links in DNG in bulk?
I have seen a situation where hundreds of requirements are linking from RM to RQM, but unfortunately the link goes to the requirement in the module which is what is desired and to the base artifact which isn't desired. I would like to know how I can deleted 100 (for example) links from the base artifacts to RQM. In short it would be any link from a base artifact to RQM should be removed leaving only links from the requirements module (the requirements within that module) |
2 answers
Create a String attribute called LinkBlank
Just leave the LinkBlank attribute in place for future batch link deletion.
Comments
Alex Ivanov
commented Mar 28 '22, 2:15 p.m.
I tried that but it doesn't support Validated By links (OSLC). It only does the DNG defined ones. Otherwise your directions are very good. Any other ideas? |
You can use the REST Api.
Do a search for all the requirements matching your criteria.
Perform a GET for each.
Remove the oslc_rm:validatedBy elements matching your criteria.
Perform a PUT to the requirement making sure to include the updated xml in the body and passing the eTag in the If-Match header.
|
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.