web-services - 在 RallyDev API v2.0 中使用 HeirarchicalRequirements 和缺陷获取任务名称/ID

标签 web-services api rally

我试图找到一种方法,通过使用 RallyDev API 获取带有缺陷和层次要求的任务名称和 ID 来保存查询。

目前使用:

https://rally1.rallydev.com/slm/webservice/v2.0/hierarchicalrequirement?query=((Iteration.Oid%20=%20%221234567890%22)%20and%20(Owner.Name%20=%20%22me@company.com%22))&fetch=Tasks,FormattedID,Name&order=Rank



这仅返回任务 _ref、类型和计数。

重复:(但这不再适用于 API v2.0)

Can you GET Rally API requirements, defects, and all tasks with one query

最佳答案

在 WSAPI 的 1.x 版本中,可以获取对象的子集合。 HierarchicalRequirement.Defects、TypeDefinition.Attributes 和 HierarchicalRequirement.Tasks 是这些子集合字段的常见示例。

出于性能原因,在 WSAPI 的 2.x 版本中不再可能执行此操作。现在每个对象集合都有自己唯一的 ref uri。这意味着现在可以单独查询、分页、排序和过滤这些集合。 Fetching Defects on a story 现在将返回一个包含计数和 uri 的对象,从中检索集合数据。 ref uri 通常采用/type/oid/collection 格式(例如/hierarchicalrequirement/12345/defects)。

但是,您可以在查询工作产品类型时使用此语法,例如缺陷 fetch=Tasks:summary[State;Owner]
此查询将返回带有格式 ID 和名称的任务摘要:

https://rally1.rallydev.com/slm/webservice/v2.0/defect?fetch=Tasks:summary[FormattedID;Name]&pagesize=200

enter image description here

关于web-services - 在 RallyDev API v2.0 中使用 HeirarchicalRequirements 和缺陷获取任务名称/ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18994284/

相关文章:

Android 网络服务数据集

java - 当我知道缺陷并想要搜索是否有与其关联的 UserStory 时使用的查询

java - 将屏幕截图附加到 Rally 测试用例结果

CertPathValidation OpenSSL C API

ruby-on-rails - 使用 Rails 将外部 JSON 保存到数据库

java - 使用 Rally wsapi v2.0 将标签添加到测试用例的正确方法

java - 如何将来自 Web 服务的 'null' 值表示为真正的 null 或空字符串而不是 'null' 字符串

c# - WCF net.tcp SSL : none of the cipher suites supported by the client application are supported by the server

java - 在 Android 中使用 REST Web 服务和解析 XML 数据

c# - 在 WinForms C# 中使用 WhatsAPINet 发送 WhatsApp 的密码错误