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 

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?

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,494
× 1,324

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

Question was seen: 1,003 times

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

Confirmation Cancel Confirm