尝试使用Rally SDK 2.0rc3提供的DeepCopy函数来复制MMF/Feature获取错误对象不是一个函数

Trying to use DeepCopy function available with Rally SDK 2.0rc3 to copy MMF/Feature getting error object is not a function

本文关键字:函数 取错误 对象 获取 Feature 一个 MMF Rally SDK 0rc3 DeepCopy      更新时间:2023-09-26

尝试使用Rally SDK 2.0rc3提供的DeepCopy功能来复制MMF/feature获取错误Uncaught TypeError:对象不是函数

我是Rally的新手,我想我在调用DeepCopy函数时做错了什么,有什么建议吗。提前感谢

这是我调用DeepCopy函数的代码

Ext.create('Rally.ui.dialog.ChooserDialog', {
    //model: 'PortfolioItem/Feature',
    //fetch: ['FormattedID','Name','UserStories'],
    width: 450,
    autoScroll: true,
    height: 525,
    title: 'Select to Copy',
    pageSize: 100,
    autoLoad: true,                 
    artifactTypes: ['portfolioitem'],
    autoShow: true,
    listeners: {
        //load: this._onDataLoaded,
        artifactChosen: function(selectedRecord) {
            console.log("copied element", Rally.util.DeepCopy(selectedRecord));
        },
        scope: this
    },
    storeConfig : {
        filters: [
            {
                property: 'PortfolioItemType.Name',
                operator: '=',
                value: 'Feature'
            }
        ]
    }
}),

您已经接近了-尝试在Rally.util.DeepCopy singleton上调用copy方法:

Rally.util.DeepCopy.copy(selectedRecord);

如果您没有API链接:https://help.rallydev.com/apps/2.0rc3/doc/#/api/Rally.util.DeepCopy