Rally Software

  • 1.  create an EngrFeature programmatically

    Posted Feb 13, 2019 11:14 AM

    Hi,

    I need to be able to create an EngrFeature item using API, namely with PUT/POST method:

    https://rally1.rallydev.com/slm/webservice/v2.0/portfolioitem/engrfeature/create

     

    The EngrFeature must have as parent a Feature.

    Can you provide an example of a valid JSON to reference the parent object?

    Thanks

    A



  • 2.  Re: create an EngrFeature programmatically

    Broadcom Employee
    Posted Feb 13, 2019 12:59 PM

    Hi.

     

    Here is an example. In this example I'm creating a PortfolioItem/Feature under a parent of PortfolioItem/Initiative. Also, you need the ObjectID of the parent, as you can see below. You shall change the portfolio item types to meet your hierarchy:

     

     

     

    I hope this helps.

     

    Sagi



  • 3.  Re: create an EngrFeature programmatically

    Posted Feb 15, 2019 04:24 AM

    Thanks Sagi for answering.

    I tried your suggestion, but I still got an error:

     

    I used this raw JSON body (I tried also without the "Project" and "Workspace"):

    {

                   "PortfolioItem/EngrFeature":

                                  {

                                                "Project": "VERTICAL: SP",

                                                "Workspace": "CSG",

                                                "Name":"My name is Andrea",

                                                 "Parent":"portfolioitem/feature/195702777404"

                                  }

    }

     

    and I get this in response:

     

    {

        "CreateResult": {

            "_rallyAPIMajor": "2",

            "_rallyAPIMinor": "0",

            "Errors": [

                "Requested type name \"portfolioitem/engrfeature\" is unknown."

            ],

            "Warnings": []

        }

    }

     

    Also tried with pyral (python API wrapper and got a similar error).

    Any ideas?

     

    Thanks

    A



  • 4.  Re: create an EngrFeature programmatically

    Broadcom Employee
    Posted Feb 15, 2019 11:16 AM

    Hi.

     

    I don't see that you have a feature with objectid = 195702777404, so perhaps you can check on that.

     

    Also, with regard to the workspace and project arguments that you include in your JSON: I'd imagine you shall refer to them by the _ref rather than by name, however, at least to begin with, I'd say: try to avoid them. So, if you don't specify a workspace and project then it will be created in your default workspace/project. Can you try that first.

     

    Let me know if that helped.

     

    Sagi