Hi I have another problem of the same nature. What if there is multiple Workspaces?
I need all Stories for Epic also from another workspace. How would I implement it please?
I can use the following on my default Workspace:
https://rally1.rallydev.com/slm/webservice/v2.0/portfolioitem/feature?pagesize=2000&&start=1&query=(Parent.Parent.FormattedID = E101)
https://rally1.rallydev.com/slm/webservice/v2.0/hierarchicalrequirement?pagesize=2000&&start=1&query=(Parent.Parent.Parent.FormattedID = E101)
But I also need the same (diferent id) from another workspace. Hope I am explaining it right.
Hi Dawid,
You can use a Workspace as an argument in your query string and that will execute it in that workspace. So, for example:
https://rally1.rallydev.com/slm/webservice/v2.0/portfolioitem/feature?workspace=https://rally1.rallydev.com/slm/webservice/v2.0/workspace/<Your Workspace Object ID>&pagesize=2000&&start=1&query=(Parent.Parent.FormattedID = E101)
Or,
https://rally1.rallydev.com/slm/webservice/v2.0/portfolioitem/feature?workspace=https://rally1.rallydev.com/slm/webservice/v2.0/workspace/<Your Workspace Object ID>&pagesize=2000&&start=1&query=(Parent.Parent.Parent.FormattedID = E101)
The above query will run in the workspace you specified. Obviously the username who is running this query must have a permission to that workspace.
Let us know if that helped.
Sagi
Awesome, Thank you for saving me again That works perfect.
Great. Glad it helped