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

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)

0 votes



2 answers

Permanent link

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.

0 votes

Comments

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

0 votes

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: Mar 25 '22, 9:55 a.m.

Question was seen: 1,823 times

Last updated: Mar 31 '22, 4:22 p.m.

Confirmation Cancel Confirm