简体   繁体   English

使用Rally Java Rest API使用字段名称查找参考

[英]Find reference using the field name using Rally Java rest api

Is there any methods available in Rally to find the field needs a reference value or not. Rally中是否有任何方法可以找到该字段是否需要参考值。 For eg, i'll get Owner,TestFolder, priority, severity. 例如,我将获得Owner,TestFolder,优先级,严重性。 Out of these fields first 2 needs a reference string to create a test case. 在这些字段中,前2个需要引用字符串来创建测试用例。 How to find the fields have to be a reference field or it can be as it is 如何查找字段必须是参考字段,也可以保持原样

Check out the web service docs here: https://rally1.rallydev.com/slm/doc/webservice/ 在此处查看Web服务文档: https : //rally1.rallydev.com/slm/doc/webservice/

Things like Owner and TestFolder will describe the One to One relationship. 诸如Owner和TestFolder之类的东西将描述一对一的关系。 The other two fields have an explicit list of allowed values. 其他两个字段具有允许值的明确列表。

You can also get all this dynamically through the WSAPI: 您还可以通过WSAPI动态获得所有这些信息:

https://rally1.rallydev.com/slm/webservice/v2.0/typedefinition?query=(TypePath%20=%20Defect)&fetch=Attributes will give you the ref to the attributes collection. https://rally1.rallydev.com/slm/webservice/v2.0/typedefinition?query=(TypePath%20=%20Defect)&fetch=Attributes将为您提供对属性集合的引用。

Then you can get the contents of the attributes like this: 然后,您可以获取如下属性的内容:

https://rally1.rallydev.com/slm/webservice/v2.0/TypeDefinition/41529147/Attributes https://rally1.rallydev.com/slm/webservice/v2.0/TypeDefinition/41529147/Attributes

Things like Owner will have an "AttributeType": "OBJECT" Things like Priority will have an "AttributeType": "RATING" 像所有者这样的东西将具有一个“ AttributeType”:“ OBJECT”像优先级这样的东西将具有一个“ AttributeType”:“ RATING”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM