When you are trying to create tasks through Rest API where we first created the level 1 task P1 and when you are attempting to create 3 sub tasks under it in the order C1, C2, C3, the tasks are getting created in the order C3, C1, C2.
STEPS TO REPRODUCE:
1. Create project in Clarity
2. Create Task in the project called Level 1
3. Attempt to create tasks through Rest API under level 1 task
Post method: http://clarityhost/ppm/rest/v1/projects/5020002/tasks
Body
{
"d": [
{
"parentTask": 5018004,
"code": "C-1",
"name": "C-1",
"startDate": "2017-04-25T00:00:01",
"finishDate": "2017-04-26T00:00:01",
"wbsSort": "1"
},
{
"parentTask": 5018004,
"code": "C-2",
"name": "C-2",
"startDate": "2017-04-27T00:00:01",
"finishDate": "2017-05-01T00:00:01",
"wbsSort": "2"
},
{
"parentTask": 5018004,
"code": "C-3",
"name": "C-3",
"startDate": "2017-04-27T00:00:01",
"finishDate": "2017-05-01T00:00:01",
"wbsSort": "3"
},
{
"parentTask": 5018004,
"code": "C-4",
"name": "C-4",
"startDate": "2017-04-27T00:00:01",
"finishDate": "2017-05-01T00:00:01",
"wbsSort": "4"
},
{
"parentTask": 5018004,
"code": "C-5",
"name": "C-5",
"startDate": "2017-04-27T00:00:01",
"finishDate": "2017-05-01T00:00:01",
"wbsSort": "5"
}
]
}
Expected Results: Tasks created in order specified.
Actual Results: Last task created is always comes as first.
Release : 15.8.1, 15.9.0, 15.9.1, 15.9.2, 15.9.3, 16.0.0, 16.0.1
Component : CLARITY XML OPEN GATEWAY (XOG)
DE63203, Fixed in 16.0.2.
Workaround: Create each task individually