问题描述
我正在尝试从自定义AttributeDeFinition中删除AllowedValues 。根据Rally api文档,可以删除AllowedValues:
DELETE https://eu1.rallydev.com/slm/webservice/v2.0/allowedattributevalue/ObjectID
REST URLs for AllowedAttributeValue
但是,当您从这样的属性中检索AllowedValues时:
https://eu1.rallydev.com/slm/webservice/v2.0/attributedeFinition/66370192405/allowedvalues
queryresult为列表的每个允许值包含ObjectID的空值。如何删除允许值的这些ObjectID以便删除它们?
{
"QueryResult": {
"_rallyAPIMajor": "2","_rallyAPIMinor": "0","Errors": [],"Warnings": [],"TotalResultCount": 3,"StartIndex": 1,"PageSize": 20,"Results": [
{
"_rallyAPIMajor": "2","_ref": "null","_refObjectUUID": "","_objectVersion": "0","CreationDate": null,>> "ObjectID": null,<<
"ObjectUUID": "null","VersionId": "0","AttributeDeFinition": {
"_rallyAPIMajor": "2","_ref": "https://eu1.rallydev.com/slm/webservice/v2.0/attributedeFinition/66370192405","_refObjectUUID": "9a44c6d3-2489-46e4-bf2b-01331d526f1a","_refObjectName": "Prioridad2222","_type": "AttributeDeFinition"
},"IntegerValue": null,"LocalizedStringValue": "aaaa","StringValue": "aaaa","ValueIndex": 0,"_type": "AllowedAttributeValue"
}
…
解决方法
最后,我从Rally支持团队得到答案。这是一个已报告的问题,并且由于内部依赖性而不会很快有修复程序。因此,我想目前,通过REST API更新/删除允许值的唯一方法是在创建时存储其ObjectID的方式,然后如果要使用以下方式更新/删除,则使用该存储的数据:
DELETE https://eu1.rallydev.com/slm/webservice/v2.0/allowedattributevalue/ObjectID
UPDATE https://eu1.rallydev.com/slm/webservice/v2.0/allowedattributevalue/ObjectID