It's all about the answers!

Ask a question

How can I get the module related to a requiment artifact, using OSLC in IBM Doors NG ?

Carlo Moura (1014) | asked Sep 15 '21, 5:32 p.m.
edited Sep 15 '21, 6:15 p.m.

 We can fetch all desirible requirements using a OSLC query in IBM Doors NG, like this:

 For each requirement artifact, I would like to know the module that contains it.

 How can I get the module related to a requiment artifact, by OSLC ?

Thanks !

Accepted answer

permanent link
Ian Barnard (2.0k613) | answered Sep 20 '21, 11:20 a.m.
edited Sep 20 '21, 12:31 p.m.

Hi Carlo

Technically speaking, core artifacts are never "in" modules, but they can be used in one or more modules, so what you're asking should correctly be stated as something like "Which modules use this artifact?".

Using OSLC Query:

That said, I don't think there's a direct way to find this out using OSLC query, but maybe you can try:
1. get the uris of selected/all modules you're interested in, e.g. using an OSLC query like oslc.where=rdf:type=oslc_rm:RequirementCollection or oslc.where=rdm_types:ArtifactFormat=jazz_rm:Module
2. for each module GET from the module URI with headers OSLC-Core-Version=2.0 and Accept=application/rdf+xml and in the RDF there are entries oslc_rm:uses for each "used" artifact
3. now GET from each of these artifacts (using the same headers) to find the id or any other info you need

Using Reportable REST:

The reportable REST API can give you the content of a module using a query like:

replace the module URI with your module URI.

To work in a configuration-managed project add a configu URL like


replace _XYZ with the URI of your configuration.


Carlo Moura selected this answer as the correct answer

Your answer

Register or 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.