首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Rally 2.1 SDK -通过迭代过滤用户故事

Rally 2.1 SDK -通过迭代过滤用户故事
EN

Stack Overflow用户
提问于 2018-06-02 02:24:21
回答 1查看 157关注 0票数 1

是否可以根据开始迭代和结束迭代之间的迭代来过滤用户故事。我能够从开始迭代向前过滤所有用户故事,向后过滤结束迭代的所有用户故事,但是当我在我的商店对象中使用".and“过滤器时,我得到一个错误。

 var StartDateFilter = Ext.create('Rally.data.QueryFilter', {
        property: 'Iteration',
        operator: '>=',
        value: StartIteration
    });


    var UserStoryFilter = StartDateFilter.and(Ext.create(
        'Rally.data.wsapi.Filter', {
            property: 'Iteration',
            operator: '<=', // combines the the iterations so it receives all iterations in between 
            value: EndIteration
    }));


    var UserStoryFilter = StartDateFilter.and(EndDateFilter);


    this.defectStore = Ext.create('Rally.data.wsapi.Store', {
        model: 'User Story', 
        autoLoad: true,                         
        pageSize: 1000,
        filters : UserStoryFilter,

        listeners: {
            load: function(myStore, myData) {
                console.log(myData); 
            },
            scope: this                         
        },
        fetch: ['CreationDate','FormattedID', 'Name', 'PlanEstimate', 'Feature', 'PortfolioItem', 'Milestones','Parent','Children']
        });
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-06-02 04:25:41

你不能像现在这样直接使用它,但你应该能够做一些类似的事情……

var filters = [
    {
        property: 'Iteration.StartDate',
        operator: '>=',
        value: '2018-05-01' //iso formatted iteration start date
    },
    {
        property: 'Iteration.EndDate',
        operator: '<=',
        value: '2018-06-30' //iso formatted iteration end date
    },
];
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50649128

复制
相关文章

相似问题

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