Rally - WSAPI: Unexpected results when using summary in fetch
search cancel

Rally - WSAPI: Unexpected results when using summary in fetch

book

Article ID: 142071

calendar_today

Updated On:

Products

Rally On-Premise Rally SaaS

Issue/Introduction

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"
}

 

Environment

Component : AGILE CENTRAL

Resolution

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:

  • Open the project and move the associated sub-object and then close the project again
  • Delete the associated sub-object from the parent