Rally Software

 View Only
Expand all | Collapse all

Get specific fields  from Rally API for Feature

Jump to Best Answer
  • 1.  Get specific fields  from Rally API for Feature

    Posted Jul 27, 2018 12:27 AM

    Hi All,

     

    I am fetching the data using below API : 

    https://rally1.rallydev.com/slm/webservice/v2.0/PortfolioItem/Feature/?fetch=ObjectID,FormattedID,Name,Parent&pagesize=2000

    I don't want to fetch all fields in Parent. All I need Name,FormattedID,ObjectID of  Feature and Parent. 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"
    }


  • 2.  Re: Get specific fields  from Rally API for Feature
    Best Answer

    Posted Jul 27, 2018 05:17 AM

    Sarada,


    The way you are doing it is the correct way.  That is the minimum information that will be returned with that query.  I don't know of any other way to restrict the information in the Parent.  If someone else does, please let us know.


    Michael