Вы можете сделать это через экземпляр модели объекта, похожее на следующее:
Rally.data.ModelFactory.getModel({
type: "Defect",
success: function (defectModel) {
var newDefect = Ext.create(defectModel, {
Name : "My New Defect from SDK2",
Priority : "Normal",
Severity : "Minor Problem",
Description : "Improper display of...",
State : "Submitted"
// Other relevant/required fields
});
newDefect.save({
callback: function(result, operation) {
if(operation.wasSuccessful()) {
//Get the new defect's objectId
var objectId = result.get('ObjectID');
}
}
});
}
});
следующей странице из Docs показывает полный Create/Read/Update/Delete цикл для AppSDK2:
https://developer.help.rallydev.com/apps/2.0p5/doc/#!/guide/appsdk_20_data_models