It's all about the answers!

Ask a question

Query to find all children to specified ID in OSLC.


Staffan Solin (133) | asked Feb 28 '17, 10:55 a.m.

Can someone give me some guidelines on how to create a query to reach all children specified to a id.


For example:

           Parent(id:1)
Child(id:2)          Child(id:3)

I want a query to find all the children associated with the parent with id 1 (id 2 and id 3) in OSLC.

Thanks in advance.

One answer



permanent link
Donald Nong (14.4k313) | answered Mar 02 '17, 5:07 a.m.

Please define "children".

If you mean the Parent/Child link, it should be very simple to get. Check out the below document.
https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20


Comments
Staffan Solin commented Mar 03 '17, 8:14 a.m.

Sorry for being unclear, yes i mean the Parent/Child link.

Thanks for the link, I still however don't fully understand how to "fetch" the Parent/Child link. Im doing the first mentioned steps which leads me to here:
https://localhost:9443/rm/oslc_rm/_cRUWgPNmEeatIKybawF-9Q/services.xml


How do i get to where I can find the link between the items?
Im using the Firefox RESTclient extension to try this out.

Im not looking in the cm-database but the rm-database, does that make any difference for the outcome?

Br,
Staffan


Donald Nong commented Mar 05 '17, 8:11 p.m.

The outcome may be slightly different but you definitely need a different document for reference.
https://jazz.net/library/article/1197

You can also use the reportable REST API, which is similar but different to the OSLC API.
https://jazz.net/wiki/bin/view/Main/DNGReportableRestAPI

Your answer


Register or to post your answer.