Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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?

0 votes

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:

  • 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

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 



2 answers

Permanent link
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

0 votes

Comments

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


Permanent link
Does this happen with other views as well?

0 votes

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,020
× 40

Question asked: Oct 19 '12, 4:50 a.m.

Question was seen: 5,283 times

Last updated: Oct 29 '12, 10:01 p.m.

Confirmation Cancel Confirm