- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在尝试获取属于特定功能但有子项的所有用户故事。
以下是我如何使用集结 Node 创建查询。
async.map(features, function(feature, cb) {
self.restApi.query({
type: 'hierarchicalrequirement',
limit: Infinity,
order: 'Rank',
fetch: ['FormattedID', 'Name', 'Children'],
parent: feature.ObjectID,
query: queryUtils.where('DirectChildrenCount', '>', 0)
}, cb);
}, function(err, results) {
//user stories
});
这是我的功能的样子:
{ _rallyAPIMajor: '2',
_rallyAPIMinor: '0',
_ref: 'https://rally1.rallydev.com/slm/webservice/v2.0/portfolioitem/feature/18846103932',
_refObjectUUID: 'c01d7f828-a6d6-4efc-8160-c0c19ad0fabc',
_objectVersion: '7',
_refObjectName: 'Dashboard Widgets',
ObjectID: 18836103932,
FormattedID: 'F1',
DirectChildrenCount: 2,
Name: 'Dashboard Widgets',
UserStories:
{ _rallyAPIMajor: '2',
_rallyAPIMinor: '0',
_ref: 'https://rally1.rallydev.com/slm/webservice/v2.0/PortfolioItem/Feature/18846103932/UserStories',
_type: 'HierarchicalRequirement',
Count: 2 },
_type: 'PortfolioItem/Feature' },
我是集会新手,因此非常感谢有关文档等的任何进一步帮助。
最佳答案
这是一个完整的示例,其中查询功能并获取其 UserStories 集合,然后进行水合。
出于性能原因,v2.0 删除了在同一响应中返回子集合的功能。现在获取集合将返回一个对象,其中包含计数和从中获取集合数据的 url。需要单独的请求来水合集合。
此更改已记录在案 here
我在您的帖子中没有看到问题,我不确定您遇到什么问题,但他的代码根据功能获取用户故事,并按 ('DirectChildrenCount', '>', 0) 进行过滤
var rally = require('rally'),
queryUtils = rally.util.query;
mySettings = {
apiKey: '_secret',
server: 'https://rally1.rallydev.com', //this is the default and may be omitted
requestOptions: {
headers: {
'X-RallyIntegrationName': 'My cool node.js program',
'X-RallyIntegrationVendor': 'My company',
'X-RallyIntegrationVersion': '1.0'
},
}
},
restApi = rally(mySettings);
function queryFeature() {
return restApi.query({
type: 'portfolioitem/feature',
fetch: ['FormattedID', 'Name', 'UserStories'],
query: queryUtils.where('FormattedID', '=', 'F7')
});
}
function queryChildren(result) {
return restApi.query({
ref: result.Results[0].UserStories,
limit: Infinity,
order: 'Rank',
fetch: ['FormattedID', 'Name'],
query: queryUtils.where('DirectChildrenCount', '>', 0)
});
}
function onSuccess(result) {
console.log('Success!', result);
}
function onError(errors) {
console.log('Failure!', errors);
}
queryFeature()
.then(queryChildren)
.then(onSuccess)
.fail(onError);
关于node.js - 使用 Rally API 根据功能选择用户故事,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23611977/
过去,我将 Rally 服务器上存在的一些图像合并到我的应用程序中——例如,我制作了一个更通用的“选择器”菜单,显示复选框,当然,复选框和框依赖于图像。 当然,当 SDK 版本更改时,我希望必须检查我
我有一个用户在集会中创建了一堆“故事”,而实际上它们应该是任务。有没有办法在 Rally 中将用户故事转换为任务?我已经搜索过 Rally 的帮助站点,但它似乎没有提供答案。 最佳答案 在 Rally
我需要修改默认的 Rally 看板应用程序以仅显示选定的迭代。我放入查询迭代下拉列表,然后添加: //基于迭代下拉列表构建查询 cardboardConfig.query = dropdownIter
如何在 Rally 中添加新的用户故事状态?即定义、完成、接受、自定义状态 最佳答案 拉力赛知识库文章“修改计划状态”: http://www.rallydev.com/help/modifying-
请谁能帮我解决这个问题,以下语法将如何出现在 Rally SDK 2 中或者您可以向我推荐一些相关文档,因为我找不到任何文档。 rally.function_name = function (rall
这似乎是一个非常基本的问题,但我在 Rally 中找不到它,所以就在这里,我在哪里可以找到拉力赛中的工作区和项目 OID? 最佳答案 为了其他可能想知道答案的用户的利益,这里有几种查找 OID 的方法
Rally 显然具有一些缺陷跟踪功能。 我的问题是;它足够好/足够灵活以作为组织的唯一缺陷跟踪器吗?或者在其他工具(如 Bugzilla 或 JIRA)中进行一般缺陷跟踪是否更常见? (可能使用 Ra
我创建了一个动态创建网格的应用程序,并允许用户通过“数字字段”编辑器对网格列之一进行更改。在调试环境中一切正常,但是当我尝试编辑 Rally 环境中的字段之一时,它会使应用程序崩溃。从它的外观来看,包
我正在尝试用 rally 组件做基本的 CSS。目前我正在努力让 xtype 'rallybutton' 与 xtype 'rallyiterationcombobox' 内联。我使用的 CSS 文件
鉴于表达式 {WorkProduct: {$in:[0001,0002,0003,...]} 我可以查询的项目数量有限制吗? 最佳答案 我们的 API 没有强制限制,但我们发送到底层引擎的整体查询必须
我想编写包含 Rally 问题(测试用例、缺陷等)链接的网页。我希望能够生成一个带有 FormattedID 的 URL。这可能吗?还是我真的需要objectID?例如: http://rally1.
如何查询我们所有可用项目的 Rally 实例? REST 调用的输出 https://rally1.rallydev.com/slm/webservice/1.29/subscription.js?f
我是 Rally API 的新手,只是在使用 Rally.RestApi 库创建任务时遇到了一些问题。我需要创建一个任务(使用 .NET)并将其与用户故事相关联(其中用户故事属于某个迭代)。 我是否必
我正在尝试创建一个应用程序,它将显示当前项目中的所有测试集及其通过/失败总数的状态。我面临的问题(顺便说一句,昨天刚开始学习 ExtJS 和 Rally SDK): - 我需要了解如何使用当前选择的项
我在外部开发时无法使用Rally.environment.getContext()。我需要在应用程序启动之前获取 ProjectOID 和 UserOID,因此我无法使用 app.getContext
我试图弄清楚如何通过 Cucumber 自动化脚本自动更新 Rally 中测试用例的测试用例结果。我希望能够运行我的测试脚本,然后该脚本将自动将 Rally 中的测试用例结果更新为“通过”或“失败”。
我们是一家使用 C#、Team Foundation Server 和 Rally 作为我们主要项目跟踪的商店。 我们想使用 Rally Item ChangeSets 来遵循 TFS Changes
我正在使用 Rally REST API 将来自 Rally 的用户故事数据集成到另一个应用程序中。我从 Rally 检索用户故事数据没有问题,但是,我想为其他应用程序的用户提供一个超链接,以便单击以
QueryRequest allreleases = new QueryRequest("release"); allreleases.setQueryFilter(new QueryFilt
我正在尝试使用 java Rally REST API 将图像文件附加到 Rally 中的测试结果(失败的屏幕截图)。图像文件附加到测试用例本身,但不附加到测试结果。试图提供 testCaseResu
我是一名优秀的程序员,十分优秀!