首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在发布开始日期时聚集或过滤sdk

在发布开始日期时聚集或过滤sdk
EN

Stack Overflow用户
提问于 2014-10-20 08:46:52
回答 1查看 176关注 0票数 1

我需要以下代码的帮助。未注释的代码工作得很好,但我需要让注释的代码工作。参见下面代码中的//value: releaseStartDateISO。具体地说,filter-2不起作用。我想要显示活动的缺陷(即过滤器1-未关闭)或关闭日期大于发布开始日期的缺陷(过滤器2)。这将给我所有的活动缺陷,以及在当前冲刺期间关闭的任何缺陷。我尝试将发布开始日期转换为ISO,但这不起作用。看起来rally不能识别ReleaseStartDate,我不知道为什么。注意:这是来自rally git的代码。我添加了"or filter“https://github.com/RallyApps/app-catalog/tree/master/src/apps/defectsummarymatrix谢谢你的帮助!

代码语言:javascript
复制
        _showComponentIfNeeded: function(component) {
        if (component && component.isHidden()) {
            component.show();
        }
    },

    _initializeAllDefectStore: function(release) {
            //var releaseStartDate = release.get('ReleaseStartDate');
            //var releaseStartDateISO = Rally.util.DateTime.toIsoString(releaseStartDate,true);
            var filter = Ext.create('Rally.data.QueryFilter', {
                property: 'State',
                operator: '!=',
                value: 'Closed'
            });
                filter = filter.or({
                property: 'ClosedDate',
                operator: '>',
                //value: releaseStartDateISO
                value: '2014-09-10'
            });
              filter.toString();
            if (this.releaseFilter && this.defectModel) {
            this.allDefectStore = Ext.create('Rally.data.wsapi.Store', {
                model: this.defectModel, 
                fetch: ['State','Priority'],
                autoLoad: true,
                limit: Infinity,
                context: this.getContext().getDataContext(),
                filters : [this.releaseFilter,filter],
                listeners: {
                    load: this._onAllDefectStoreLoaded,
                    scope: this
                }
            });
        }
    },

    _onAllDefectStoreLoaded: function(store, records, successful, eOpts) {
        this._initializeMatrixTable();
        this._populateMatrixTable(records);
        this._createPriorityRecords(records);
        this._updateMatrixGrid();
        this.setLoading(false);
    },
EN

回答 1

Stack Overflow用户

发布于 2014-10-20 11:55:02

release.get('ReleaseStartDate')的值是什么?有没有可能您拥有的版本记录没有填充该字段?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26457057

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档