I am new to using the Rally API for .NET and I would be very appreciative for any help. I have obtained the story object but I am not sure how to update it with a new defect. I can create new defects following various examples but they are not associated to any particular story. My current error brings back: [“Ignored JSON element hierarchicalrequirement.Defects during processing of this request.”].
Thanks in advance for any insights.
The collection of Defects on a HierarchicalRequirement is read-only, so you can’t associate Defects to a Story by making changes to the Defect collection. What you can do, however, is to set the Requirement attribute of the Defect to the Ref of an existing Story, when either creating/updating Defects using the API. Here’s a quick example:
Where the long integers are the ObjectID’s (OID’s) of the objects in Rally used in the ref’s of interest.