It's all about the answers!

Ask a question

REST - ProjectArea modified-resource


Bastian W (217) | asked Jan 08 '16, 8:23 a.m.
Hi together,

i have a question. With the following RestCall I get a list of all project areas. (ccm,qm,rm)

https://localhost:9443/qm/process/project-areas

That works (also implemented in java) fine for me.

The Problem, for example:
I have two project areas "QM1" and "LifeCycleProject1 (Quality Management)". I know the names and want to have in the first step the modified date of "QM1". And in a second step i want to have the modifed date of "LifeCycleProject1 (Quality Management)".

The site: https://sleroyblog.wordpress.com/tag/rqm/ was very helpful for my previous steps. Now, the only missing point is for me now, that i need a call something like that:

https://localhost:9443//qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QM1/
The Result should be the given projectarea with all details/attributes (which are shown with https://localhost:9443/qm/process/project-areas) and the ResponseBody, where i can further search the modfied date for the corresponding projectarea.

<?xml version="1.0" encoding="UTF-8"?><jp06:project-areas xmlns:jp06="http://jazz.net/xmlns/prod/jazz/process/0.6/">

    <jp06:project-area jp06:name="QM1">

        <jp06:summary/>

        <jp06:description/>

        <jp06:url>https://localhost:9443/qm/process/project-areas/_CJ0oEHDKEeWTw5QohIqrPw</jp06:url>

        <jp06:roles-url>https://localhost:9443/qm/process/project-areas/_CJ0oEHDKEeWTw5QohIqrPw/roles</jp06:roles-url>

        <jp06:links-url>https://localhost:9443/qm/process/project-areas/_CJ0oEHDKEeWTw5QohIqrPw/links</jp06:links-url>

        <jp06:members-url>https://localhost:9443/qm/process/project-areas/_CJ0oEHDKEeWTw5QohIqrPw/members</jp06:members-url>

        <jp:admins-url xmlns:jp="http://jazz.net/xmlns/prod/jazz/process/1.0/">https://localhost:9443/qm/process/project-areas/_CJ0oEHDKEeWTw5QohIqrPw/admins</jp:admins-url>

        <jp06:team-areas-url>https://localhost:9443/qm/process/project-areas/_CJ0oEHDKEeWTw5QohIqrPw/team-areas</jp06:team-areas-url>

        <jp06:project-admins-url>https://localhost:9443/qm/process/project-areas/_CJ0oEHDKEeWTw5QohIqrPw/project-admins</jp06:project-admins-url>

        <jp06:read-access-list-url>https://localhost:9443/qm/process/project-areas/_CJ0oEHDKEeWTw5QohIqrPw/read-access-list</jp06:read-access-list-url>

        <jp:timelines-url xmlns:jp="http://jazz.net/xmlns/prod/jazz/process/1.0/">https://localhost:9443/qm/process/project-areas/_CJ0oEHDKEeWTw5QohIqrPw/timelines</jp:timelines-url>

        <jp06:access-public>false</jp06:access-public>

        <jp06:access-visible-to-access-list>false</jp06:access-visible-to-access-list>

        <jp06:access-visible-to-members>true</jp06:access-visible-to-members>

        <jp06:modified>Fri, 08 Jan 2016 11:27:17 GMT</jp06:modified>

        <jp06:archived>false</jp06:archived>

        <jp:history-url xmlns:jp="http://jazz.net/xmlns/prod/jazz/process/1.0/">https://localhost:9443/qm/process/project-areas/_CJ0oEHDKEeWTw5QohIqrPw/history</jp:history-url>

    </jp06:project-area>

    <jp06:project-area jp06:name="LifeCycleProject1 (Quality Management)">

        <jp06:summary>LifeCycleProject1 (Quality Management)</jp06:summary>

        <jp06:description/>

        <jp06:url>https://localhost:9443/qm/process/project-areas/_xm3ScHDREeWTw5QohIqrPw</jp06:url>

        <jp06:roles-url>https://localhost:9443/qm/process/project-areas/_xm3ScHDREeWTw5QohIqrPw/roles</jp06:roles-url>

        <jp06:links-url>https://localhost:9443/qm/process/project-areas/_xm3ScHDREeWTw5QohIqrPw/links</jp06:links-url>

        <jp06:members-url>https://localhost:9443/qm/process/project-areas/_xm3ScHDREeWTw5QohIqrPw/members</jp06:members-url>

        <jp:admins-url xmlns:jp="http://jazz.net/xmlns/prod/jazz/process/1.0/">https://localhost:9443/qm/process/project-areas/_xm3ScHDREeWTw5QohIqrPw/admins</jp:admins-url>

        <jp06:team-areas-url>https://localhost:9443/qm/process/project-areas/_xm3ScHDREeWTw5QohIqrPw/team-areas</jp06:team-areas-url>

        <jp06:project-admins-url>https://localhost:9443/qm/process/project-areas/_xm3ScHDREeWTw5QohIqrPw/project-admins</jp06:project-admins-url>

        <jp06:read-access-list-url>https://localhost:9443/qm/process/project-areas/_xm3ScHDREeWTw5QohIqrPw/read-access-list</jp06:read-access-list-url>

        <jp:timelines-url xmlns:jp="http://jazz.net/xmlns/prod/jazz/process/1.0/">https://localhost:9443/qm/process/project-areas/_xm3ScHDREeWTw5QohIqrPw/timelines</jp:timelines-url>

        <jp06:access-public>false</jp06:access-public>

        <jp06:access-visible-to-access-list>false</jp06:access-visible-to-access-list>

        <jp06:access-visible-to-members>true</jp06:access-visible-to-members>

        <jp06:modified>Mon, 12 Oct 2015 11:10:29 GMT</jp06:modified>

        <jp06:archived>false</jp06:archived>

        <jp:history-url xmlns:jp="http://jazz.net/xmlns/prod/jazz/process/1.0/">https://localhost:9443/qm/process/project-areas/_xm3ScHDREeWTw5QohIqrPw/history</jp:history-url>

    </jp06:project-area>

</jp06:project-areas>
	



One answer



permanent link
Donald Nong (14.5k614) | answered Jan 11 '16, 12:46 a.m.
I have to read your post three times to understand what you are asking.

Note sure how you ended up with the URL https://localhost:9443/qm/process/project-areas, but that is the OSLC (not REST) API that you are using. So the URL to the project area is in a different form. In your case, the <jp06:url> tag contains the URL that you need.

With OSLC API, you start with /qm/rootservices to get all the resource URLs. For RQM reportable REST API, you construct the URL directly based on what you want to retrieve.
https://jazz.net/wiki/bin/view/Main/RqmApi

Your answer


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