我正在使用以下API提取数据:
我不想获取“父母”中的所有字段。我只需要功能的名称,FormattedID,ObjectID,Parent.ObjectID,Parent.Name。 A
{
"_rallyAPIMajor": "2",
"_rallyAPIMinor": "0",
"ObjectID": blabla,
"FormattedID": "F3792",
"DirectChildrenCount": 23,
"Name": "Phase 2: Fork Messages (New flow of messages that will feed data to 8 reports for D&P)",
"Parent": {
"_rallyAPIMajor": "2",
"_rallyAPIMinor": "0",
"_ref": "https://rally1.rallydev.com/slm/webservice/v2.0/portfolioitem/portfolio/blabla",
"_refObjectUUID": "8fae",
"_objectVersion": "67",
"_refObjectName": "blabla",
"ObjectID": blabla,
"FormattedID": "P1ABC",
"DirectChildrenCount": 13,
"Name": "blabla",
"_type": "PortfolioItem/Portfolio"
},
"_type": "PortfolioItem/Feature"
}
答案 0 :(得分:0)
这只是Web服务API的工作方式。包含在提取中的任何字段都将在具有它们的任何对象上返回。这对于能够在关联对象(父对象,迭代等)上水合字段非常有用。