When using the Rally Web Services API (WSAPI) to create or update artifacts such as User Stories (HierarchicalRequirement), Tasks, or Defects, the request may fail if reference fields are not formatted correctly. This article provides the required JSON structure for reference fields like Project, Owner, and Tags.
In the Rally WSAPI, reference fields (fields that link to other objects) must be passed as a JSON object containing a _ref key. Passing the reference as a simple string path (e.g., "Project": "/project/####") is invalid and will cause the field to be ignored or the request to fail.
Ensure all reference fields in the JSON payload use the _ref object structure.
Use the following structure when creating a HierarchicalRequirement (User Story):
https://rally1.rallydev.com/slm/webservice/v2.0/hierarchicalrequirement/create).