Hello, I want to query the modules and artifacts in a RM Baseline/Stream irrespective of the folders they are present in.
I want to query the modules and artifacts in a RM Baseline/Stream irrespective of the folders they are present in. Though I was able to query for some of the baselines, some modules are missing in the result. Suppose if there are 3 modules when viewed from browser, only 2 are showing up in the query result(only in few cases). Not able to figure out the root cause for this inconsistency on why this is happening in some cases. Please help. Thanks in advance.
3 answers
Hello ,
The reportable REST query you're using works irrespective of the folder the module is in. It's possible the server wants to return more than one page of results and the "missing" modules are in subsequent pages you're not retrieving.
- https://jazz.ibm.com:9443/rm/publish/modules/?oslc_config.context=https%3A%2F%2Fjazz.ibm.com%3A9443%2Frm%2Fcm%2Fstream%2F_3TPS4NcJEeqXpuBdEolY7w%0D%0A
- https://jazz.ibm.com:9443/rm/publish/modules/
- with Header Configuration.Context set to https://jazz.ibm.com:9443/rm/cm/stream/_3TPS4NcJEeqXpuBdEolY7w
<?xml version="1.0" encoding="UTF-8"?><ds:dataSource xmlns:ds="http://jazz.net/xmlns/alm/rm/datasource/v0.1"xmlns:rrm="http://www.ibm.com/xmlns/rrm/1.0/"xmlns:attribute="http://jazz.net/xmlns/alm/rm/attribute/v0.1"xmlns:comments="http://jazz.net/xmlns/alm/rm/comments/v0.1"xmlns:field="http://jazz.net/xmlns/alm/rm/field/v0.1"xmlns:history="http://jazz.net/xmlns/alm/rm/history/v0.1"xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"xmlns:rm="http://www.ibm.com/xmlns/rdm/rdf/"xmlns:term="http://jazz.net/xmlns/alm/rm/term/v0.1"xmlns:text="http://jazz.net/xmlns/alm/rm/text/v0.1"xmlns:view="http://jazz.net/xmlns/alm/rm/view/v0.1"xmlns:xhtml="http://www.w3.org/1999/xhtml"appId="RRC"rel="next"rrm:totalCount="11"vMajor="60"vMinor="06"><ds:artifact attribute:itemId="_4II6kNcJEeqXpuBdEolY7w"><rrm:title attribute:itemId="_3tK10dcJEeqXpuBdEolY7w">AMR System Requirements Specification</rrm:title>
Headers are given the right way like you mentioned(Sorry I happened to mention in short form above). And in the result I see rrm:totalCount="1" with the details of that single module alone whereas I'm able to query all modules in some cases where all the modules are present at same level. So please suggest if there is any alternate way to do this.
Comments
Some tips for debugging:
Comments
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Aug 25 '21, 1:07 p.m.What version+ifix are you using?