It's all about the answers!

Ask a question

IBM Doors - Deleting multiple links in any link type

Cansu Bastabak (113) | asked Jul 30 '21, 3:37 a.m.

Hi, I am using Rational DOORS Next Generation. I use link type "link from"  for requirement traceability. The artifact linked from 50 another artifacts. I want to delete all links from the artifact. How can I delete all 50 artifacts one time ?


Accepted answer

permanent link
Sean F (1.3k239142) | answered Jul 30 '21, 9:20 a.m.

Create a String attribute called LinkBlank

Assign it to the artifact type

Select the artifact with 50 links

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 artifact

Just leave the LinkBlank attribute in place for future batch link deletion.

Geoffrey Clemm selected this answer as the correct answer

Geoffrey Clemm commented Jul 30 '21, 9:28 a.m.

Nice one, Sean! 

Bartosz Chrabski commented Jul 30 '21, 10:47 a.m. | edited Jul 30 '21, 10:48 a.m.

Good hint. My only issue is that it can be problem for people without permissions to change artifact data model.

Davyd Norris commented Aug 01 '21, 7:13 p.m.
@Bartosz - it'll work with any attribute that's blank, or in fact doesn't contain a number, or even numbers that don't match any of the link IDs.

You don't need to create a special attribute.

But having a generic LinkID attribute defined is very handy for this sort of thing

Cansu Bastabak commented Aug 02 '21, 2:23 a.m.

Thank you Sean, it will help. 

Your answer

Register or to post your answer.