使用Lookback API如何查找未更改ToDo的任务? [英] using Lookback API how to find tasks that did not have a change in ToDo?

查看:119
本文介绍了使用Lookback API如何查找未更改ToDo的任务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个应用程序,该应用程序显示按迭代过滤的任务网格,其中ToDo尚未在特定时间范围内修改.每个文档的Tasks迭代在LookbackAPI中均不可用,但是还有第二个问题:如何查找在指定时间段内ToDo没有变化的任务?谢谢.

I am writing an app that shows a grid of tasks, filtered by iteration, where ToDo has not been modified within certain time frame. Per documentation Iterations on Tasks are not available in LookbackAPI, but there is a second question: how to find tasks that did not have a change in ToDo within a time period specified? Thank you.

推荐答案

您可以应用此过滤器

"_PreviousValues.ToDo":{$exists: false} 

获取未修改ToDo的快照.

to get snapshots where ToDo was not modified.

此查询在特定项目中查找任务,并限制时间范围:

This query looks for Tasks in a specific project, and limit the time frame:

https://rally1.rallydev.com/analytics/v2.0/service/rally/workspace/1111/artifact/snapshot/query.js?find={"_ProjectHierarchy":2222,"_TypeHierarchy":"Task","_PreviousValues.ToDo":{$exists: false},_ValidFrom:{$gte: "2014-04-XXTxx:xx:00.000Z",$lt: "2014-04-XXTxx:yy:00.000Z"}}&fields=["_UnformattedID","ToDo","_PreviousValues.ToDo"]

"_PreviousValues.ToDo":null稍有不同的是,它返回的任务的第一个快照与未设置ToDo时的原始修订版相对应,此外还返回了由"_PreviousValues.ToDo":{$exists: false}

A slightly different "_PreviousValues.ToDo":null returns the task's first snapshot that corresponds to the original revision when ToDo was not set in addition to the same snapshots returned when filtered by "_PreviousValues.ToDo":{$exists: false}

对于通过迭代过滤任务,可以使用Rally.data.wsapi.Store获取通过迭代过滤的任务的ObjectID,然后通过OID数组过滤的Rally.data.lookback.SnapshotStore.

As far as filtering tasks by iteration, you may use Rally.data.wsapi.Store to get ObjectIDs of the tasks filtered by iteration, and then Rally.data.lookback.SnapshotStore filtered by the array of OIDs

{
     property: 'ObjectID',
     operator: 'in',
     value: arr
}

其中arr是[123456789,987654321,...]

where arr is [123456789, 987654321,...]

这篇关于使用Lookback API如何查找未更改ToDo的任务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆