How to get a project area name /details from resource URI
HI
First of all when i am putting a resource uri in the url it will opens the artifact of a specific project area present in the RRC 4.0.1
https://(host):(port)/rm/resources/_433e1e14bf4c4e689ed3cbe2e304ba3e
So is there any possible ways to get the :-Project name from the unique id :--- _433e1e14bf4c4e689ed3cbe2e304ba3e
First of all when i am putting a resource uri in the url it will opens the artifact of a specific project area present in the RRC 4.0.1
https://(host):(port)/rm/resources/_433e1e14bf4c4e689ed3cbe2e304ba3e
So is there any possible ways to get the :-Project name from the unique id :--- _433e1e14bf4c4e689ed3cbe2e304ba3e
4 answers
Hi Preetam,
You can also try:
- doing an OSLC Get - Check this article https://jazz.net/library/article/1197
-
or using the Reporting REST API
https://server:port/rm/publish/resource?resourceURI=_433e1e14bf4c4e689ed3cbe2e304ba3e this URI will give you back an XML with all the information about the artifact including project name, project URL, etc...
Check this wiki - https://jazz.net/wiki/bin/view/Main/RRCReportableRestAPI
It will depend on what you're trying to achieve.
Hi Preetam,
I'm not sure I entirely understand your question. If you input the artifact URI into a web browser, the artifact UI should appear and the name of the project which contains this artifact should appear in the top-left corner of your web browser. Are you attempting to use REST services in order to obtain the project-area information for a given artifact? If that's the case, you can use this link in your web browser, and look for the URI resource associated with the "jfs:resourceContext" property which is the project area URL for this artifact:
https://[host]:[port]/rm/query?describe=[uri]&accept=*&private=true
Let me know if you have any more questions. Thanks,
Michael Jaworski
I'm not sure I entirely understand your question. If you input the artifact URI into a web browser, the artifact UI should appear and the name of the project which contains this artifact should appear in the top-left corner of your web browser. Are you attempting to use REST services in order to obtain the project-area information for a given artifact? If that's the case, you can use this link in your web browser, and look for the URI resource associated with the "jfs:resourceContext" property which is the project area URL for this artifact:
https://[host]:[port]/rm/query?describe=[uri]&accept=*&private=true
Let me know if you have any more questions. Thanks,
Michael Jaworski
Hi Michael
Through OSLC or any other api can i get the name of the project area of the artifacts:-
from this url:-
https://(host):(port)/rm/resources/_433e1e14bf4c4e689ed3cbe2e304ba3e
Hi Edgar
The link you have given is used by us for reporting purpose already.
Through OSLC or any other api can i get the name of the project area of the artifacts:-
from this url:-
https://(host):(port)/rm/resources/_433e1e14bf4c4e689ed3cbe2e304ba3e
Hi Edgar
The link you have given is used by us for reporting purpose already.
Comments
Thanks Mike,
The query
https://[host]:[port]/rm/query?describe=[uri]&accept=*&private=true
works for me.
The query
https://[host]:[port]/rm/query?describe=[uri]&accept=*&private=true
works for me.