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

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

0 votes

Comments

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,



2 answers

Permanent link
The API for DNG is limited.  Look for the rest API and examples on the wiki.  You can write javascript extensions.

0 votes


Permanent link
This can be done using the OSLC API. Please refer to the below article, in particular the section "adding and removing links".
https://jazz.net/library/article/1197

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
× 11,074

Question asked: Jun 26 '15, 6:11 a.m.

Question was seen: 5,804 times

Last updated: Feb 14 '16, 2:26 p.m.

Confirmation Cancel Confirm