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

DNG - Link by Attribute using custom attribute

I have got the Link by Attribute (LBA) function working OK but only with DNG Artifact ID.


DOORS Classic has similar LBA functionlity and where I used to find it very useful was when importing data for a customer adopting DOORS.

For example I would have 2 spreadsheets ReqsA and ReqsB.

Traceability would be defined in a column in the ReqsB containing multiple numbers each referencing a single value ID in a column in ReqsA

I would import the 2 spreadsheets which would create all the source objects and all the target objects and 2 attributes (LinkSourceAttr and LinkTargAttr) and then run LBA to create the links.

Is there any way to do this in DNG?

I thought a workaround might be to, after import, cycle through each value of LinkTargAttr and find its corresponding DNG ID and then swap all the occurrences of LinkTargAttr in the multivalue LinkSourceAttr string before running LBA but I don't even see how that can be done very easily.

0 votes


Accepted answer

Permanent link

 Import your ReqsA spreadsheet, then export it as a View, which will give you the DNG IDs.


Use VLOOKUP on your ReqsB spreadsheet, converting your original ReqsA indices into the new DNG IDs.

Import your ReqsB spreadsheet, then use Link By Attribute to create the links between A and B.

Be aware that LBA always seems to create links to the BASE Artefact, not the MODULE one that you might be hoping for!

Sean F selected this answer as the correct answer

0 votes

Comments

Prefix the artifact id with the module id separate by a dot and this will link by attribute to the artifact in the module and not to the base artifact, eg:  123.456


2 other answers

Permanent link
^Thanks David. I will give that a try.

Would be nice to have the old DOORS Classic link by attribute feature in the tool also.

0 votes


Permanent link

 We have created DNG Link by Foreign Attribute Script and give it away for free to our customers. This script automatically looks for artifacts,their previous linked objects and link them also in module context.

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
× 6,121

Question asked: Aug 27 '18, 8:22 a.m.

Question was seen: 4,682 times

Last updated: Jun 28 '19, 10:08 a.m.

Confirmation Cancel Confirm