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
Preetam,
Does this mean your question has been answered? Just making sure, because I'm still not sure for what purpose you are attempting to obtain the name of the project area, and through what means you would like to obtain this information. If these answers have been insufficient so far, please provide a detailed description of the information you would like to retrieve, and for what purpose, so that we can attempt to provide you with the most appropriate means for obtaining the info.
Thanks.
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.