Rally - WSAPI: Unexpected results when using summary in fetch

book

Article ID: 142071

calendar_today

Updated On:

Products

CA Agile Central On Premise (Rally) CA Agile Central SaaS (Rally)

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/999999999999",
    "_refObjectUUID": "0123456-789-abc-def0-123456789ab",
    "_objectVersion": "999",
    "_refObjectName": "My Portfolio Item",
    "Risks":{
        "_rallyAPIMajor": "2",
        "_rallyAPIMinor": "0",
        "_ref": "[https://rally1.rallydev.com/slm/webservice/v2.0/PortfolioItem/Epic/999999999999/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