Error: "Could not set release for the parent object directly" when setting Release via Web Services API

Document ID : KB000057547
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue

User reports the following error in the json response when attempting to set Release on user story:

{"OperationResult": {
    "_rallyAPIMajor": "2",
    "_rallyAPIMinor": "0",
    "Errors": [
        "Could not set value for Release: Could not set release for the parent object directly"
    ],
    "Warnings": []
}}


Resolution

User is trying to set a release on a parent story. Parent/epic stories cannot be scheduled for release in UI or in WS API. In UI Release dropdown is grayed out on parent stories.

As long a release is being set on a leaf story it should work as follows.

For example, if user story ObjectID is 777, and the target release ObjectID is 888, and valid authentication key is abc-123
?

URL:

https://rally1.rallydev.com/slm/webservice/v3.0/hierarchicalrequirement/777?key=abc-123

and Payload:

{"HierarchicalRequirement":{
"Release": "/release/888"
}}