Hi I am fetching the current userstories for a particular iteration using the following code
Ext.define('CustomApp', {
extend: 'Rally.app.App',
componentCls: 'app',
launch:function(){
me = this;
combo = window.parent.Ext4.ComponentQuery.query('rallyiterationcombobox')[0];
var iterationObjectID = combo.getRecord().data.ObjectID;
var query1= { _ProjectHierarchy: me.getContext().getProject().ObjectID, Iteration : iterationObjectID , _TypeHierarchy:"HierarchicalRequirement"};
var fields = ["ObjectID","FormattedID","Name","Parent","Release","Tags","PlanEstimate","ScheduleState","_ValidFrom","_ValidTo"];
var hydrate = ["Tags","ScheduleState"];
var post = { find :query1, fields : fields, hydrate : hydrate, pagesize : 10000 };
var wsid = this.context.getWorkspace().ObjectID;
var url = "https://rally1.rallydev.com/analytics/v2.0/service/rally/workspace/"+ wsid +"/artifact/snapshot/query.js";
console.log("snapshot url:",url);
Ext.Ajax.request({
method: 'POST',
url: url,
jsonData : post,
success: function(res) {
res = JSON.parse(res.responseText);
console.log("The final results are",res);
},
failure: function(failure) {
console.log("snapshot query failed!",failure);
}
});
The problem is that I could not get the user stories of the child projects when I specify the parent project in the query. For example if I have the hierarchy like this
Project 7890
User Story 55
User Story 56
Project 6543
User Story 57
Project 3456
User Story 777
Ideally If I query _ProjectHierarchy: 7890 I should be getting User Story 55,User Story 56,User Story 57,User Story 777 since the query retrieves the multiple work items of itself and its child projects,but here I am only able to get User Story 55,User Story 66(which are userstories of project 7890) but not User Story 57,User Story 777 since those are the User Stories of the child projects. I want to retrieve all User Stories of selected project and its child projects also(i.e scope down).