Rally Software

 View Only
  • 1.  How can I add an additional defect to an existing Defect Suite with already added defects in Postman?

    Posted Nov 29, 2023 10:02 PM

    How can I add an additional defect to an existing Defect Suite with already added defects? Example:  A Defect Suite exists with 10 already added defects. I just need to add the 11th defect to the Defect Suite.

    I used this. but it removes already added defects from the Suite and adds the one in json.

    https://rally1.rallydev.com/slm/webservice/v2.0/defectsuite/731884442421

    {
    "DefectSuite": {
    "Defects": [
    {"_ref""/defect/731744974967"}
    ]}}

     



  • 2.  RE: How can I add an additional defect to an existing Defect Suite with already added defects in Postman?

    Posted Nov 30, 2023 07:36 AM

    This link is not helpful. It's solution is not working.

    https://stackoverflow.com/questions/17931928/rally-rest-api-add-defect-to-defect-suite




  • 3.  RE: How can I add an additional defect to an existing Defect Suite with already added defects in Postman?
    Best Answer

    Broadcom Employee
    Posted Nov 30, 2023 09:49 AM
    Edited by Shamal Jay Nov 30, 2023 10:06 AM

    Please review the information here: https://rally1.rallydev.com/slm/doc/webservice/rest_collections.jsp

    Defects is a Collection on Defect Suite, the URL for the Collection is:

    https://rally1.rallydev.com/slm/webservice/v2.0/defectsuite/ObjectID/Defects

    To Add a Defect  POST to

    https://rally1.rallydev.com/slm/webservice/v2.0/defectsuite/ObjectID of  DefectSuite/defects/add

    with a payload similar to this:

    {
    "CollectionItems": [
    // Pass a reference to add an existing item to a collection
    {"_ref": "https://rally1.rallydev.com/slm/webservice/v2.0/defect/ObjectID of Defect"}
    ]
    }