初步估计值在用新值保存时重置为旧值

PreliminaryEstimate's Value resets to old value on saving with new value

我正在尝试通过估算板编辑和保存投资组合项目的初步估算值,但它会将其重置为原始值。我在看板中使用 PreliminaryEstimateValue 但是当移动卡片时,我将 PreliminaryEstimate 重置为新的列值。

var store = Ext.create('Rally.data.wsapi.Store', { model: 'PreliminaryEstimate', fetch: ['ObjectID','ObjectUUID','VersionId','Description','Name','Value','CreationDate','Subscription','Workspace','RevisionHistory'], autoLoad: false, limit: Infinity, disableMetaChangeEvent: true });

beforecarddroppedsave: function (scope, card, type, sourceColumn, eOpts) { card.record.data.PreliminaryEstimate = _.omit(_.filter(this.preliminaryEstimateStore.getRange(), function (pe) { return pe.data.Value === card.record.data.PreliminaryEstimateValue })[0] .data, ['Summary', 'creatable', 'deletable', 'updatable', '_CreatedAt', '_objectVersion', '_uuidRef']);

选项也有了新的价值。它保存成功但旧值不会更改为新值 handleBeforeCardDroppedSave: function (options) { options.record.save({})
谢谢!

如果您检查网络流量,它是否真的通过线路发送该值?我会尝试使用 setter 方法而不是直接操作数据对象。我的猜测是该记录认为它没有任何更改可以保存您当前代码的编写方式。

card.record.set('PreliminaryEstimate', '/preliminaryestimatevalue/12345');