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

API to Get the list of views in the DNG.

 API to Get the list of views in the DNG. Based on that, we need to get the list of artifacts tagged to the views. 

0 votes



3 answers

Permanent link
Hi Karthik,
You can get the list of Views created against the Module from the DNG WebUI:



Right click on the View --> Share Link to View-->You can get the details of particular view from the UI:
Here is filterId is the UUID of the view:

View

And substitute the same in the below viewURI:
https://server:port/rm/publish/[artifact_format]?viewURI=id1&projectURI=id2

Related article:

Regards,
Rakesh S


0 votes

Comments

This API -  https://server:port/rm/publish/[artifact_format]?viewURI=id1&projectURI=id2 

sometimes fetches all the artifacts instead of filtered artifacts, any reason?

I'm guessing the returned artifacts aren't filtered when the view you specify isn't a shared view.


Permanent link

DOORS Next has an OSLC Query capability for views, in the component services.xml. This provides results for shared views.


I think this capability was added to allow API creation of a reqif export specification (using the ReqIF API) referencing a view, which only supports shared views.

So I guess your "sometimes fetches all the artifacts" comment - which I assume means "for some views the Reportable REST API always returns all the artifacts" - is when you try to use a non-shared view.

0 votes

Comments

Do u have that sample OSLC Query  by any chance?

 An example view query URL is:   https://jazz.ibm.com:9443/rm/views_oslc/query?componentURI=https%3A//jazz.ibm.com%3A9443/rm/cm/component/_WRg7E3aKEfCeB7Wej8YFgg&oslc.select=%2A&oslc.paging=false&vvc.configuration=https%3A//jazz.ibm.com%3A9443/rm/cm/stream/_WR0dEHaKEfCeB7Wej8YFgg

There's no point specifying oslc.where, and use oslc.select=*, and specify a local configuration.

You should discover the OSLC Query capability for resourceType http://jazz.net/ns/rm/dng/view#View in your services.xml - there's an example of discovery here, which I note doesn't show the view query capability https://jazz.net/forum/questions/266334/dng-oslcfetch-components-from-project-area/266667

it only returns shared views.

The view query capability will have a dcterms:title View Definition Query Capability for resource type <oslc:resourceType rdf:resource="http://jazz.net/ns/rm/dng/view#View"/> - it's the resourceType you should use to identify the query capability.

HTH
Ian


Permanent link

Thanks, pernament link is great stuff!




____
 

-1 votes

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
× 11,052

Question asked: Oct 13 '23, 2:00 a.m.

Question was seen: 1,908 times

Last updated: Sep 16, 7:40 a.m.

Confirmation Cancel Confirm