It's all about the answers!

Ask a question

How can I remove Validated By (links from RM to RQM) links in DNG in bulk?


Alex Ivanov (713) | asked Mar 25 '22, 9:55 a.m.

 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



permanent link
Sean F (1.3k246158) | answered Mar 25 '22, 10:10 a.m.
edited Mar 25 '22, 10:12 a.m.

Create a String attribute called LinkBlank

Assign it to the artifact type

Select the base artifacts in the folder

Select Link By Attribute function from artifact menu

Select attribute LinkBlank

Select link type Link From

Select option 'Remove links that don't have a matching ID'

All Link From links will be removed form the base artifact leaving only module links

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? 


permanent link
Steven Wallace (337) | answered Mar 31 '22, 3:57 p.m.
edited Mar 31 '22, 4:22 p.m.
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


Register or 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.