Rally Software

 View Only
Expand all | Collapse all

How to tag a milestone to US using Rally's rest api using Java

  • 1.  How to tag a milestone to US using Rally's rest api using Java

    Posted Sep 21, 2020 12:48 PM
    Hi All
    I want to tag a milestone to User story using Rally restapi 
    I can get the reference of US and Milestone easily but adding the milestone reference with US is not working...
    Read few options about using collections , but quite not familiar using collection. 

    Below is the code 

    JsonObject updatedDefect = new JsonObject();
    updatedDefect.addProperty("Milestones._ref", MilestoneRef);
    UpdateRequest updateRequest = new UpdateRequest(userstoryRef, updatedDefect);
    UpdateResponse updateResponse = restApi.update(updateRequest);
    System.out.println(updateResponse.wasSuccessful());



  • 2.  RE: How to tag a milestone to US using Rally's rest api using Java

    Broadcom Employee
    Posted Sep 22, 2020 01:17 AM
    Hi Satish,

    Please check out this Java example. This example walks you through how to add milestones to a user story.

    Please let us know if that helped.

    Thanks,
    Sagi