API - How to create a Task using the API - with User Story as WorkProduct / Parent
book
Article ID: 219518
calendar_today
Updated On:
Products
Rally SaaS
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:<API Key - include the underscore before the key> Content-Length: 318
Content-Type: application/json
Host: rally1.rallydev.com
{
"Task": {
"Workspace": {
"_ref": "/workspace/<WORKSPACE_OID>"
},
"Project": {
"_ref": "/project/<PROJECT_OID>"
},
"WorkProduct": {
"_ref": "/hierarchicalrequirement/<STORY_OID>"
},
"Name": "API - create task as child of US test 11111",
"Estimate": "1"
}
}
Feedback
thumb_up
Yes
thumb_down
No