API - How to create a Task using the API - with User Story as WorkProduct / Parent
book
Article ID: 219518
calendar_today
Updated On:
Products
CA Agile Central SaaS (Rally)
Issue/Introduction
API - How to create a Task using the API - with User Story as WorkProduct / Parent
Resolution
A Task cannot be an orphan artifact. It will need a parent (otherwise known as WorkProduct). Here is how to create a Task with Parent as User Story.
POST /slm/webservice/v2.0/task/create HTTP/1.1
Cookie:
ZSESSIONID: _jraX888888888888888888
Content-Length: 318
Content-Type: application/json
Host: rally1.rallydev.com
{
"Task": {
"Workspace": {
"_ref": "/workspace/18387422765"
},
"Project": {
"_ref": "/project/18403545848"
},
"WorkProduct": {
"_ref": "/hierarchicalrequirement/603804871975"
},
"Name": "API - create task as child of US test 11111",
"Estimate": "1"
}
}

Feedback
thumb_up
Yes
thumb_down
No