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

RM API - Create Validate By Link using RM.Data.createLink?

Trying to script setting a "Validated By" link from a DOORS artifact to an RQM Test Step. I've got the artifactRef and the test step's dcterms:identifier, which is a URL. I tried using:

RM.Data.createLink(artifactRef, RM.Data.VALIDATED_BY, testStepURL, callback);

But this results in return code: OPERATION_BAD_REQUEST being returned to my callback function.

Does the RM API support linking to test artifacts? If not, is there a supported method of setting a 'Validated by' link programatically?

Thanks!
Dave

0 votes



2 answers

Permanent link
Dave,

Widget API supports only creating links inside RM (between artifacts). If You want to create links with test cases then You should use OSLC. Hope it will help.

0 votes


Permanent link

 Hello Dave,


it works if you create an RM.ArtifactRef-object. But you only name the uri (is the encoded uri from the test case). Then use the ref-object within the creatLink function. If the you have a proper link-validity it works.

For example:  
RM.Data.createLink(refRequierment, RM.Data.VALIDATED_BY, refQmArtefact, function(res){});

Regards,
Robert

0 votes

Comments

I am not sure if You understood question from Dave. We are talking about links between QM and RM.

I am absolut sure, that I understood the question right. I have added an example-code to my answer.

Bartosz,


by the way we know each other from an Jazz installation 1,5 years ago in Bremen via web-session. Do you remember me?

Regards

Robert  

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
× 10,936
× 233

Question asked: Oct 01 '20, 12:00 p.m.

Question was seen: 2,718 times

Last updated: Mar 30 '21, 8:32 a.m.

Confirmation Cancel Confirm