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

Is there any API to fetch only the artifacts or modules which has links in DNG

 Is there any API (OSLC or Reportable REST API)  to fetch only the artifacts or modules which has links in DNG

0 votes



2 answers

Permanent link

For opt-in (configuration managed):


This could only be possible by OSLC Query into DOORS Next where links are outgoing from artifacts, i.e. they must be RM to RM links because all links from other apps are incoming into DN; but OSLC Query can't filter for a non-empty link property, so the way to do this using OSLC Query is for oslc.select to include the link property and then post-process the results of the query.

For links incoming to DN you'll have to query in the app where the link is stored.

For opt-out:

Backlinks are stored in DN so you may be able to get these using OSLC Query; not sure, you'll have to try it

0 votes

Comments
Yes I need the API for DNG internal links. It would be helpful if you have any sample query 

 I used the below query with oslc.select with link type. https://port/rm/views?oslc.query=true&projectURL=https%3A%2F%2Fport%2Frm%2Fprocess%2Fproject-areas%2F_lHiK8KCkEeqZEuOY_z6S2A&oslc.select=https%3A%2F%2Fport%2Frm%2Ftypes%2FLT_RiWh3ccHEeitdLwEqvb98g but getting error. Can you please help 

What error are you getting? If you specify oslc.select=* does it work? If you don't specify oslc.select does it work? Are you providing a configuration header, what other headers?

 Here's an example with oslc.select specifies the Satisfies relationship, identifier, rm_nav:parent GET https://jazz.ibm.com:9443/rm/views?oslc.pageSize=200&oslc.paging=true&oslc.prefix=rp0%3D%3Chttps%3A//jazz.ibm.com%3A9443/rm/types/%3E%2Cdcterms%3D%3Chttp%3A//purl.org/dc/terms/%3E%2Crm_nav%3D%3Chttp%3A//jazz.net/ns/rm/navigation%23%3E&oslc.query=true&oslc.select=rp0%3ALT_9tnBcVEhEe2d5dG-54qhbg%2Cdcterms%3Aidentifier%2Crm_nav%3Aparent&projectURL=https%3A//jazz.ibm.com%3A9443/rm/process/project-areas/_9WxOwFEhEe2d5dG-54qhbg&oslc_config.context=https%3A%2F%2Fjazz.ibm.com%3A9443%2Frm%2Fcm%2Fstream%2F_9iD4wFEhEe2d5dG-54qhbg Significant headers: OSLC-Core-Version: 2.0 Accept: application/rdf+xml Configuration-Context: https://jazz.ibm.com:9443/rm/cm/stream/_9iD4wFEhEe2d5dG-54qhbg I think the syntax for oslc.select requires properties to be prefixed, like rp0:whatever where the prefix is defined in the oslc.prefix=rp0=<https://jazz.ibm.com:9443/rm/types/>

OSLC Query specification: OSLC Query Version 3.0 (oasis-open-projects.org) For the oslc.select syntax this references the oslc.properties syntax here OSLC Core Version 3.0. Part 1: Overview (oslc-op.github.io) 

Hello Barnard, Thanks for the help. I tried with the query you had suggested, I was using satisfaction link UUID for oslc.select, please refer the query i had used below.  But I am getting artifacts which does not have any links in the API response. https://server:port/rm/views?oslc.pageSize=200&oslc.paging=true&oslc.prefix=rp0%3D%3Chttps://server:port/rm/types/%3E%2Cdcterms%3D%3Chttp%3A//purl.org/dc/terms/%3E%2Crm_nav%3D%3Chttp%3A//jazz.net/ns/rm/navigation%23%3E&oslc.query=true&oslc.select=rp0%3ALT_RiWh3ccHEeitdLwEqvb98g%2Cdcterms%3Aidentifier%2Crm_nav%3Aparent&projectURL=https://server:port/rm%2Fprocess%2Fproject-areas%2F_lHiK8KCkEeqZEuOY_z6S2A  

> I am getting artifacts which does not have any links in the API response Yes that's expected - as I said in my answer OSLC Query doesn't have a way to filter out resources that don't have a value for a property so you'll have to post-process the results 

showing 5 of 7 show 2 more comments

Permanent link

Hi team,


Hope this helps!

0 votes

Comments
This does not have examples to fetch artifacts which has links. Thank you. 

Links are no different from any other property of an artifact so yes that article is relevant - but note you'll only see them on the artifact that is the 'from' end of the link

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
× 7,623
× 1,453

Question asked: May 25 '23, 7:04 a.m.

Question was seen: 3,260 times

Last updated: May 31 '23, 3:26 a.m.

Confirmation Cancel Confirm