English 中文(简体)
回溯 API: 绘制用于字符串的附表国家对象标识图
原标题:Lookback API: Mapping of Schedule State ObjectIDs to Strings

当我做如下问题时,我注意到这一点:

   https://rally1.rallydev.com/analytics/1.27/41529001/artifact/snapshot/query.js?find={ _Type: "HierarchicalRequirement",ScheduleState:"In-Progress",__At:"current"},fields=true

我收集的成绩会带着这个回来:

   {"_rallyAPIMajor":"1","_rallyAPIMinor":"27","Errors":[],"Warnings":[],"ThreadStats":{"elapsedCpu":"10.0","waitTime":"0","blockedTime":"0","waitCount":"0","blockedCount":"0"},"Timings":{"preProcess":10.0,"findEtlDate":0.0,"allowedValuesDisambiguation":0.0,"mongoQuery":0.0,"authorization":0.0,"postProcess":0.0,"other":0.0,"TOTAL":10.0},"GeneratedQuery":{"find":{"ScheduleState":{"$in":[41529076]},"$and":[{"_ValidFrom":{"$lte":"2012-05-23T18:25:41.363Z"},"_ValidTo":{"$gt":"2012-05-23T18:25:41.363Z"}}],"_ValidFrom":{"$lte":"2012-05-23T18:25:41.363Z"}},"workspace":41529001},"TotalResultCount":2205,"StartIndex":0,"PageSize":100,"ETLDate":"2012-05-23T18:25:41.363Z","Results": ... RESULTS HERE

我对此感到好奇:

  "ScheduleState":{"$in":[41529076]}

哪个显示表列状态的对象ID(OID) 而不是字符串值 。 是否有一种简单的方法可以返回表列状态字符串而不是 OIDs? 从表列状态 OIDs 到字符串的映射的最佳方式是什么?

最佳回答

最新消息:回溯式 API最近升级, 包括水合物功能, 以解决这个问题。 以下是它是如何运作的...

< 强势 > Hydrate

默认情况下, 在回复期间, 此 API 不试图将本地对象ID 整数格式的下拉字段值区分为字符串。 但是, 您可以指定一些字段, 使用此语法进行水化 :

hydrate: ["State", "ScheduleState"]

这会使国家和表列国字段重新变换成字符串。 注意, 分析 API 正在使用当前允许的值来进行这种变换。 很可能在快照中引用了旧的值 。 这些 OID 将不会变换 。

问题回答

暂无回答




相关问题
Rally: How the Release filter in Rally is implemented?

We need to determine a top level story to be considered under a selected release if any of its child (or further child stories) are scheduled to be released in the selected release. Valuable replies ...

Using the Rally Rest API for CRUD operations

At my company, we recently started using Rally for our project management tool. Initially, someone external to our team invested a lot of time manually creating iterations using a naming convention ...

热门标签