親レベルのストーリーを表示するためのラリーグリッドを構築しています。行ごとに、そのストーリーのすべての子を繰り返し、各子ストーリーからいくつかの情報を引き出したいと思います。例えば
Ext.Array.each(data, function(record) {
//Perform custom actions with the data here
//Calculations, etc.
recName=record.get('Name');
if (recName.search(/\[Parent\]/i) != -1) {
// Grab Child Iterations
if (record.get('Children').length) {
var childlist = record.get('Children');
for (var child in childlist) {
// I want to get each child's Iteration !!!
}
} else {
childIter = "none";
}
records.push({
FormattedID: record.get('FormattedID'),
ScheduleState: record.get('ScheduleState'),
Name: recName,
NumChildren: record.get('Children').length,
PRDNumber: record.get('PRDNumber')
});
}
});
ただし、record.get('Children')は、次のようなオブジェクトを再調整します。
_rallyAPIMajor "1"
_rallyAPIMinor "34"
_ref "https://rally1.rallydev.com/slm/webservice/1.34/hierarchicalrequirement/7272142216.js"
_refObjectName "[Comp] User Story"
_type "HierarchicalRequirement"
_ref URIを取得し、それをダウンロードしてJSONを解析し、childrecord.get('field')を開始できる素敵なオブジェクトにするExt呼び出しがあると想定していますが、私の人生では、呼び出す適切な関数を見つけます。