Can you use DNG scripts to automatically add links to other requirements
I have just done an upload of lost of requirements into dng with a textual attribute for the "Old Ref ID". Some of the artifacts are linked together with another attribute "Parent Ref" which is also textual and contains the "Old Ref ID"
Manually it would be possibel to go through them and add the links based on the values held in the boxes but we have hundreds of requirements. I wanted to know if a script could be written to do this automatically, something like
For all parentRequirements
Find childRequirements where parentRef == parentRequirement.oldRefID
parentRequirement.addLink(artifact childRequirement, linkType child)
Loop
Let me know if this is possible and I will try to get it working, if not it will have to be a manual process.
Thanks
Manually it would be possibel to go through them and add the links based on the values held in the boxes but we have hundreds of requirements. I wanted to know if a script could be written to do this automatically, something like
For all parentRequirements
Find childRequirements where parentRef == parentRequirement.oldRefID
parentRequirement.addLink(artifact childRequirement, linkType child)
Loop
Let me know if this is possible and I will try to get it working, if not it will have to be a manual process.
Thanks
Comments
Francis Larocque
Feb 14 '16, 2:26 p.m.Hi,
Did you succeed in your quest for a link creation script?
I'm actually looking to implement the same thing as I need to massively link thousands of artifacts together.
Thanks,