Javascript 在Rally SDK 2中,是否有一些记录类型不可用于WSAPI数据存储?

Javascript 在Rally SDK 2中,是否有一些记录类型不可用于WSAPI数据存储?,javascript,rally,Javascript,Rally,当我为用户故事创建一个快速wsapidatastore时,它可以工作: Ext.create('Rally.data.WsapiDataStore', { model: 'User Story', autoLoad: true, listeners: { load: this._onArtifactsLoaded, scope: this

当我为用户故事创建一个快速wsapidatastore时,它可以工作:

Ext.create('Rally.data.WsapiDataStore', {
            model: 'User Story',
            autoLoad: true,
            listeners: {
                load: this._onArtifactsLoaded,
                scope: this
            }
        });
但如果我将其更改为Artifact,我会得到一个错误:

Ext.create('Rally.data.WsapiDataStore', {
            model: 'Artifact',
            autoLoad: true,
            listeners: {
                load: this._onArtifactsLoaded,
                scope: this
            }
        });
控制台说:

Uncaught TypeError: Cannot call method 'replace' of undefined sdk-debug.js:104071
Ext.define._buildTypeInfo sdk-debug.js:104071
Ext.define.getModels sdk-debug.js:104025
Ext.Array.each sdk-debug.js:956
Ext.define.getModels sdk-debug.js:104024
Ext.define.getModel sdk-debug.js:103985
Ext.define.load sdk-debug.js:104379
(anonymous function)

模型工厂中似乎有错误

如果您需要解决方法,可以使用这行代码将工件添加为合法类型

Rally.data.ModelTypes.types.artifact = 'artifact';