When using the summary feature in a WSAPI fetch, the count in the sub-object does not match the count in the summary.
As an example, risks are being summarized for portfolio items using the following WSAPI call:
https://rally1.rallydev.com/slm/webservice/v2.0/portfolioitem?fetch=Risks:summary[FormattedID]&query=(Risks.ObjectID != null)
One of the risks returns the unexpected summary result with no data, even though the Risks collection shows a count of 1.
{
"_rallyAPIMajor": "2",
"_rallyAPIMinor": "0",
"_ref": "https://rally1.rallydev.com/slm/webservice/v2.0/portfolioitem/epic/<OBJECT_ID>",
"_refObjectUUID": "<OBJECT_UUID>",
"_objectVersion": "999",
"_refObjectName": "My Portfolio Item",
"Risks":{
"_rallyAPIMajor": "2",
"_rallyAPIMinor": "0",
"_ref": "[https://rally1.rallydev.com/slm/webservice/v2.0/PortfolioItem/Epic/<OBJECT_ID>/Risks]",
"_type": "Risk",
"Count": 1
},
"Summary": {
"Risks": {
"FormattedID": {},
"Count": 0
}
},
"_type": "PortfolioItem/Epic"
}
Component : AGILE CENTRAL
There is an open defect for this issue.
This can occur when the sub-object exists in a closed project.
In order to resolve this, one of the following must be performed: