OSLC/REST link RM requirement to Test Case in QM
One answer
Backlinks are not automatically created when using the API. You must add the validatesRequirement element to the associated versionedtestcase and perform the PUT on it.
Comments
AFAICT this is nothing to do with "backlink"s - the ValidatesRequirement link is always from a test case to a requirement - OP is creating the "forward" link and must do this by PUT on the test case. DOORS Next will find this link by querying LDX and display it as a Validated By when the requirement is examined in DOORS Next.
Is it possible that there is a different behavior when the project areas are configuration enabled?
In my simple not configuration aware set up , I find the links in both items. E.g. I find
<oslc_rm:validatedBy rdf:resource="https://elm.example.com:9443/qm/oslc_qm/contexts/_9rYEoFpmEeubKv3DLU7kgg/resources/com.ibm.rqm.planning.VersionedTestCase/_KbDVcbppEey-aqHj2wGmUA"/>
If global configuration management is enabled, the link is only maintained in the QM element.
<oslc_qm:validatesRequirement rdf:resource="https://elm.example.com:9443/rm/resources/BI_FwI_4e3hEeuiQ9NS4IrdCw" />
There is no "back link" stored in DNG in this case. Instead LDX is used to look up the QM element with the link.
Comments
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Apr 12 '22, 4:28 a.m.With configuration management enabled links are stored at the 'from' end: a Validated By link is from a QM resource to a RM requirement, so it's stored at the QM end - hence you have to update (PUT) the QM resource with the link, not the RM end.
Philip Gates
Apr 12 '22, 7:54 a.m.What would the link on the qm side look like then? It doesn't even show any links for me without using the OSLC get of the test case.
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Apr 12 '22, 10:08 a.m.This is untrue, have you tried? I just went into a requirement in a module and added a validated by to/from a new test case. From the Test Case I got the URI from the link hover.
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Apr 12 '22, 10:10 a.m.Note my test runs on a configuration management not enabled system. If you have that enabled, you would have to make sure to open the correct version of the items in the correct context.