Rally Software

 View Only
  • 1.  Hi All,   I am using rally rest service .net...

    Posted Aug 22, 2016 06:19 AM

    Hi All,

     

    I am using rally rest service .net toolkit to interact with rally web services. i am able to get data successfully and now i am trying to update a feature properties "PriliminaryEstimate" and  "RefinedEstimate", but every time when i try to update a feature i am getting some times "Not authorized to perform action: Invalid key" error and some times "Cannot set attribute on a com.rallydev.webservice.json.JSONSingleProperty" error.

     

    Here is the cody

     

     

       DynamicJsonObject data = new DynamicJsonObject();

       data["PreliminaryEstimate"] = "https://rally1.rallydev.com/slm/webservice/v2.0/preliminaryestimate/14457113801"; // refrence of the preliminary estimate

                    data["RefinedEstimate"] = "1";        

             

                        OperationResult updateResult = restApi.Update(rallyRef, data);   // rallyRef : reference of the feature

     

     

    Can any one help me to solve this asap.

     

    i tried with api key as well instead of credentials. now this time i am getting Requested type name Requested type name "https://rally1.rallydev.com/slm/webservice/v2.0/portfolioitem/feature/60709821600" is unknown.



  • 2.  Re:

    Posted Aug 22, 2016 07:37 PM
    With a typename error like the one you're showing, I'd recommend checking your webservices API docs: https://rally1.rallydev.com/slm/doc/webservice/ and verify the names of your PortfolioItem typedefs. Do you see a webservices endpoint for /PortfolioItem/Feature ? If not, it's likely that your Agile Central admins have customized the PortfolioItem types.