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

Query to find all children to specified ID in OSLC.

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.

0 votes



One answer

Permanent link

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

0 votes

Comments

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

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 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
× 10,938
× 7,495

Question asked: Feb 28 '17, 10:55 a.m.

Question was seen: 3,936 times

Last updated: Mar 05 '17, 8:11 p.m.

Confirmation Cancel Confirm