It's all about the answers!

Ask a question

Report REST API usage for RRC&RPE: how to use collectionURI, viewName


Regis Coqueret (11111) | asked Oct 19 '12, 4:50 a.m.
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?

Comments
Regis Coqueret commented Oct 19 '12, 5:49 a.m.

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:

  • ISN'T THERE AN EASIER WAY TO GET TO THE VIEW URI ?
  • WHY IS viewName not working ?
  • WHERE IS THE UP TO DATE RRC 4.0 REST API DOCUMENTATION ?
Thanks for any help or pointer


Edgar Ignacio Velazquez Mar commented Oct 19 '12, 12:26 p.m.
JAZZ DEVELOPER

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


Regis Coqueret commented Oct 19 '12, 12:37 p.m.

ok got it ... viewURI is same as filterId, because 'views' were previously known as 'saved filters' right ?


Edgar Ignacio Velazquez Mar commented Oct 19 '12, 2:14 p.m.
JAZZ DEVELOPER

correct, this is the easiest way to get the viewURI since RRC 4.0


Regis Coqueret commented Oct 29 '12, 10:01 p.m.

thank you Edgar 

2 answers



permanent link
Edgar Ignacio Velazquez Mar (7225) | answered Oct 19 '12, 2:36 p.m.
JAZZ DEVELOPER
Does this happen with other views as well?

permanent link
Edgar Ignacio Velazquez Mar (7225) | answered Oct 19 '12, 11:35 a.m.
JAZZ DEVELOPER
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

Comments
Regis Coqueret commented Oct 19 '12, 12:05 p.m.

I do not have white space. Which level do you have server side?

Your answer


Register or to post your answer.