Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

DNG OSLC Query on Module

Hi ,

Is it possible to fetch all artifacts under give module?

We have core Artifacts those are reused in several modules. and I wanna query module specific artifact using module Id. Is this even support in APIs?

I tried access artifacts by using Forlder query like

But this always return back Core artifact and not module specific artifact those are having several links associated with it.

Any suggestion reference appreciated...

Thanks & Regards,
-Jay

0 votes



One answer

Permanent link

Hi


You're only getting core artifacts because only core artifacts have a value for nav:parent (because they are in a folder, that's what nav:parent points at).

I've not found a way to query for a null or empty nav:parent - one way of finding module artifacts would be to remove the oslc.where condition and filter the results in your application to remove the results that do have a nav:parent, leaving you with the module artifacts. This will create larger result sets from the query, increasing server load, which you should be careful about.

Another way might be to use the Reportable REST API which has methods to filter for artifacts by module, or from a view of a module -  so that may be preferable for the problem you're trying to solve. See https://jazz.net/wiki/bin/view/Main/DNGReportableRestAPI

HTH
Ian

1 vote

Comments
Thanks Ian!

I tried fetching artifacts using reportable APIs, that was my first preference. For some reason HTTP client takes way too long to response back even single page of 100-500 artifacts in it.


Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,934
× 7,494
× 1,323
× 515
× 478

Question asked: Sep 14 '20, 2:36 p.m.

Question was seen: 2,117 times

Last updated: Sep 22 '20, 4:45 p.m.

Confirmation Cancel Confirm