Report REST API usage for RRC&RPE: how to use collectionURI, viewName
![]()
I can not find out how to form a correct data source URI to fetch requirements for a given view or collection.
Using RRC 4.0 and RPE 1.1.2.2 (with fiw for OAuth1a). The syntax explained on https://jazz.net/wiki/bin/view/Main/RRCReportableRestAPI is obsolete? |
2 answers
![]()
Hi Regis,
I just tested with the following https://.../rm/publish/resources?projectURI=_Ehe6UBlMEeKtmNW8oGGwkg&viewName=All%20Terms and I got the elements back correctly. The wiki you're referring to is not obsolete, this syntax does work Is the view called "SelfService" or "Self Service"? Spaces do make the difference |
![]()
Does this happen with other views as well?
|
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.
Comments
Made some progress:
- creatd a view 'SelfService'
- URL https://.../text?projectURI=_byUWFsWmEeGLPdfJvx2A4w&viewName=SelfService yields nothing: "<?xml version="1.0" encoding="UTF-8"?><ds:dataSource totalCount="0" xmlns:ds="http://jazz.net/xmlns/alm/rm/datasource/v0.1"/>"
- have inspected the HTML element in FireFox and picked up the span tag (containing https://server:9443/rm/views/_hT9bMBnQEeKBkPeKWs5CDQ) and then forming a different URL:
https://.../text?projectURI=_byUWFsWmEeGLPdfJvx2A4w&viewURI=_hT9bMBnQEeKBkPeKWs5CDQ
- this works well, including rich text
QUESTIONS:
You can also get the viewURI by clicking the pencil icon on the view and select "Show Link", you will get a URL like this:
https://.../rdm/web#action=com.ibm.rdm.web.pages.showProjectDashboard&projectURI=https%3A%2F%2F...%2Fjts%2Fprocess%2Fproject-areas%2F_Ehe6UBlMEeKtmNW8oGGwkg&filterId=_08klghlMEeKtmNW8oGGwkg
from here just grab the filterId parameter and use it in your request
ok got it ... viewURI is same as filterId, because 'views' were previously known as 'saved filters' right ?
correct, this is the easiest way to get the viewURI since RRC 4.0
thank you EdgarÂ