It's all about the answers!

Ask a question

Too much Artefacts when I use a RM OSLC Query


Stefan Hufnagl (29411920) | asked Jan 09 '15, 5:27 a.m.
 Hi,

I have a strange situation...when I use a RM OSLC Query to get all Artefacts of specific Type I got too many Artefacts back. The reason is some of them appear twice. The Artefacts that I see twice seems to be included in DNG Modules or Collections. Is this a feature or a bug?

BTW, I use the excellent article from https://jazz.net/library/article/1197.

Thx in advance...

Steve


The Query is here:

Accepted answer


permanent link
Gabriel Ruelas (1.1k13) | answered Jan 09 '15, 7:53 a.m.
Hi,
      OSLC handles artifacts included in a module as separate artifacts, for instance if you have a normal artifact and it is included in 4 modules the oslc query for it will return 5 artifacts.  One easy way to differentiate the real artifacts from the ones included in modules is that real artifact has a "nav:parent" entry in the body returned.

Best Regards.
Stefan Hufnagl selected this answer as the correct answer

Comments
Stefan Hufnagl commented Jan 09 '15, 9:57 a.m.

 Hi Gabriel,


thanks for you answer...I think you are right. In the meantime I found a (for me) better solution. I use the Reporting REST API of DNG https://jazz.net/wiki/bin/view/Main/RRCReportableRestAPI. 
In this case I can access a prepared DNG View (like: give me all Artefacts of type...) and I got only the "real" amount of Artefacts. With this solution I have the possibility of changing my query with the help of the DNG GUI. 

Cheers,

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.