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

Get the Review from OSLC (Rest) from Rational Requeriments Composer

 Hi,

I am trying to get the revisions from OSLC from RRC, but I am able to return just one Review, i would like to get all review from RRC. Is it possible?

Now I am using this URL: https://server.com/rm/publish/reviews?resourceURI=_rtPEBFXxEeOSEI9nGfR2Kw
I already tried without ResourceURI but didn´t work.

Another question: Have any way to get the ResourceURI from review of the link artefact ?. For example:

I am using the URL: https://server.com/rm/publish/resources?resourceURI=_Wrz4oFXxEeOSEI9nGfR2Kw to get some informations about the requeriment, but don´t have any information about the ResourceURI from my review. how I can know which review this artifact is linked?

Regards.

1

0 votes


Accepted answer

Permanent link
I think the entry point of the review resource has defined under rootservices. It seems a generic API - https://[SERVER_NAME]:9443/rm/reviews you can use.

I also found that this REST API feed requires private head so make sure you add this in

DoorsRP-Request-Type : private

It does not filter by a project area but cross-project so you might need to filter using project ID if you want a project specific one.


Lucas Marinoto selected this answer as the correct answer

1 vote

Comments

  Hi Charlie,


Thanks very much for help me.

I used the url https://server.com/rm/reviews?projectURI=_sKOGEETxEeK_ptVzRF2Yew and the header name: DoorsRP-Request-Type Value: private and now get all the reviews.

 Thanks.


2 other answers

Permanent link
Hi,

I also tried to get the reviews via the following request:
https://rrc.server.com/rdm/publish/reviews?resourceURI=_RRIlGgsDEeGCzMQCLJEtiw

But I only got the following response:
<?xml version="1.0" encoding="UTF-8"?>
<ds:dataSource xmlns:rrmReview="https://rrc.server.com/rdm/publish/schema/rrmreview" xmlns:reviewParticipant="https://rrc.server.com/rdm/publish/schema/reviewparticipant" xmlns:reviewComment="https://rrc.server.com/rdm/publish/schema/reviewcomment" xmlns:reviewArtifact="https://rrc.server.com/rdm/publish/schema/reviewartifact" xmlns:review="https://rrc.server.com/rdm/publish/schema/review" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:history="http://jazz.net/xmlns/alm/rm/history/v0.1" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:ds="http://jazz.net/xmlns/alm/rm/datasource/v0.1" xmlns:attribute="http://jazz.net/xmlns/alm/rm/attribute/v0.1" vMinor="20" vMajor="40" rrm:totalCount="1" xmlns:rrm="http://www.ibm.com/xmlns/rrm/1.0/" appId="RRC"/>

There is no content. What do I do wrong?
Thanks.

0 votes


Permanent link

 @Charlie Seo In REST-API i am able to get all reviews of the project using header: DoorsRP-Request-Type Value: private

However when i pass the header in the request through java code i get Error 403: forbidden.
<html><head><title>Error 403: Forbidden</title></head><body><h1>Error 403: Forbidden</h1><p>CRRRS4142E  getInternalRequestHandlerService(context) returned null. This error used to report &#039;The requested service requires a private header&#039;.<hr><i>Requirements Management/4.0.7</i></p></body></html>

Any ideas what can be the probelm?

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
× 516
× 481
× 139
× 137
× 40

Question asked: Jan 20 '14, 12:44 p.m.

Question was seen: 7,188 times

Last updated: Feb 01 '17, 7:25 a.m.

Confirmation Cancel Confirm