It's all about the answers!

Ask a question

Read all artifacts in a Project area using RM Client extension API.


Vaibhav S (106348) | asked Jan 10 '22, 3:47 a.m.

 Hello,


 I need to Read  all artifacts in a Project area using RM Client extension API.

I checked the APIs in https://jazz.net/wiki/bin/view/Main/RMExtensionsAPI702 article and other previous versions as well but couldn't find any such method.

Please let me know if its possible.

Thanks
Vaibhav

One answer



permanent link
Bartosz Chrabski (3.4k12749) | answered Jan 10 '22, 3:54 a.m.
Vaibhav,

RM Client extension API does not give you possibility to get all the artifacts in the probject but You can use OSLC or Reportable API.


Example:

https://dngserver.public.name:port/rm/publish/resources?projectURI=_ABC

Comments
Vaibhav S commented Jan 10 '22, 4:33 a.m.

Hello Bartoz,


Thanks for the response.

Can you please help me with how to use these APIs in my .js file through which I am implementing my DNG extension.

thanks
vaibhav 


Chandan M B commented Jan 10 '22, 5:16 a.m.

Hi Vaibhav,


Could you please precise about reading all artifacts mean ?
In a GC Enabled project
  You have to know the component first
  Then you have to read the module
  From the module you can read all the artifacts 
 


Vaibhav S commented Jan 10 '22, 8:33 a.m.

Hi Chandan, 


The PA is not GC enabled.

Any API to read the Artifacts in PA ? 


Bartosz Chrabski commented Jan 10 '22, 8:43 a.m.

As I wrote, use Reportable API or OSLC. If You will adapt the provided URL to your server reality then you will be able to list artefacts. Be aware that there can be many pages of results.

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.