It's all about the answers!

Ask a question

Regarding the RRC query to get all th details of an artifact


Preetam Sikdar (61316) | asked Apr 22 '13, 9:05 a.m.
Hi
https://<hostname:port>/rm/publish/resources?resourceURI=_ba854bd55dbd48a089525711708818fc
From this query we get the artifact attributes only.
But we want to know from a single query is all the details of the artifact that is the Artifact attributes values along with the rich text section values.

Comments
Jason Warner commented Apr 25 '13, 2:42 p.m.
JAZZ DEVELOPER

Hi Preetam,

Can you provide more context regarding what you are trying to do?  There are a couple ways to get the attributes you want, but it depends on what you are actually trying to do.

Thanks,
Jason

2 answers



permanent link
Preetam Sikdar (61316) | answered Apr 29 '13, 1:24 a.m.
Hi Jason,
Thanks for you reply.I am describing you the scenario what we are going to do.
First of all from the query :
https://(host):(port)/rm/publish/resources?typeURI=_gHLtonWnEeKciu5lDEXHVA
with the get method through OSLC we are getting the project area name of the artifact where it resides and along with all the attributes value present in the artifact.

Again we query:
https://(host):(port)/rm/publish/resources?resourceURI=_gHLtonWnEeKciu5lDEXHVA
with the get method through OSLC and we are getting the xml of the artifact where we get the rich text section of the artifact.

So we have to query two times to get the artifacts attributes along with the project area name and second time we have to query to get the rich text section of the artifact which makes our application to work slow as its firing query for two times.

so we want only one  query where we get all the details along with the project area name of the artifact where it resides with attributes along with it rich text section of the artifact also..

permanent link
Jason Warner (1063) | answered Apr 30 '13, 10:24 a.m.
JAZZ DEVELOPER
Hi Preetam,

Have you seen our documentation on using OSLC with Requirements Management applications (https://jazz.net/library/article/1197/)?  I'm not quite sure if you'd be able to get the project area name and the artifact info from the same query.  They're two different resources.  The artifact info does contain a reference to the project-area resource.  Without knowing what your application is trying to accomplish, you could do an initial get for the project-area info and cache that for referencing using the project-area URI.

Thanks,
Jason

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.