Hi Balaji,
The data held in the tables are connected by the reference to the a single level up or down (children or parent only). This means that you need to recreate the complete hierarchy in code and cannot do it with a single command.
I wrote a little bit of code to do this, but it might not be suitable for you as I used d3 (d3js.org) javascript library. If you are interested in the general technique, you can go here and have a look:
https://github.com/nikantonelli/WorkspaceEquivalence/blob/89040de11beafd2815e9f8b438953d5cba1f8aaf/App.js#L49------------------------------
Nik
Rally Sales Engineer
Rally Software
------------------------------
Original Message:
Sent: 11-11-2019 06:06 PM
From: Balaji Dommaraju
Subject: Get projects under top node
Hi @David LeDeaux, It is giving only the immediate children not all hierarchical i.e lower level nodes.
I want all those.
Original Message:
Sent: 11-11-2019 05:43 PM
From: David LeDeaux
Subject: Get projects under top node
Hi Balaji,
You'll want to get the ObjectID of the parent project and use a URL like this:
https://rally1.rallydev.com/slm/webservice/v2.0/project/<ObjectID>/children
Original Message:
Sent: 11-01-2019 05:04 PM
From: Balaji Dommaraju
Subject: Get projects under top node
Hi DavidLeDeaux,
Thanks for your quick reply, I will rephrase the question.
Suppose if I have projects p11,p12,p13 under p1 and p1,p2,p3 under p(root project) and q is another project in workspace. I need only p11,p12,p13 and p1 (all are under p) not q.
Original Message:
Sent: 11-01-2019 03:34 PM
From: David LeDeaux
Subject: Get projects under top node
Hi Balaji
If you mean you're wanting to pull all projects that don't have a parent then this query will work:
https://rally1.rallydev.com/slm/webservice/v2.0/project?query=(Parent.ObjectID%20=%20null)
Original Message:
Sent: 11-01-2019 03:31 PM
From: Balaji Dommaraju
Subject: Get projects under top node
Hi Team,
I want to get all the projects under specified workspace and specified project.
I have below query which is working fine for workspace scope but not project. Is there any other way to achieve this.
https://rally1.rallydev.com/slm/webservice/v2.0/project?workspace=/workspace/<WORKSPACEID>&fetch=true&start=1&pagesize=20&project=/project/<TOP-NODE-PROJECTID
------------------------------
BALAJI
------------------------------