I Think there was a bit of a misunderstanding. I will try to explain my problem again in a different way:
[
{
"D_ID": 1,
"Name": "xyz",
"Relates_To": "123",
"Start_Date": "2016-07-30T00:00:00",
"duration": 1,
"constraintType": "muststarton",
"End_Date": null,
"D_KeyDate": 1
},
{
"D_ID": 2,
"Name": "abc",
"Relates_To": "123",
"Start_Date": "2016-08-31T00:00:00",
"End_Date": null,
"duration": 1,
"constraintType": "muststarton",
"D_KeyDate": 1
},
{
"D_ID": 3,
"Name": "abc1",
"Relates_To": "123",
"Start_Date": "2016-08-20T00:00:00",
"duration": 1,
"constraintType": "muststarton",
"End_Date": null,
"D_KeyDate": 1
},
{
"D_ID": 4,
"Name": "abcd",
"Relates_To": "123",
"Start_Date": "2016-10-21T00:00:00",
"duration": 1,
"constraintType": "muststarton",
"End_Date": null,
"D_KeyDate": 1
}
]
{
"success": true,
"project": {
"calendar": "general",
"startDate" : "2016-07-31",
"endDate" : "2016-10-31"
},
"calendars": {
"rows": [
{
"id": "general",
"name": "General",
"intervals": [
{
"recurrentStartDate": "on Sat at 0:00",
"recurrentEndDate": "on Mon at 0:00",
"isWorking": false
}
],
"expanded": true,
"children": [
{
"id": "business",
"name": "Business",
"hoursPerDay": 8,
"daysPerWeek": 5,
"daysPerMonth": 20,
"intervals": [
{
"recurrentStartDate": "every weekday at 12:00",
"recurrentEndDate": "every weekday at 13:00",
"isWorking": false
},
{
"recurrentStartDate": "every weekday at 17:00",
"recurrentEndDate": "every weekday at 08:00",
"isWorking": false
}
]
},
{
"id": "night",
"name": "Night shift",
"hoursPerDay": 8,
"daysPerWeek": 5,
"daysPerMonth": 20,
"intervals": [
{
"recurrentStartDate": "every weekday at 6:00",
"recurrentEndDate": "every weekday at 22:00",
"isWorking": false
}
]
}
]
}
]
},
"tasks": {
"rows": [
{
"D_ID": 1,
"Name": "xyz",
"Relates_To": "123",
"Start_Date": "2016-07-30T00:00:00",
"duration": 1,
"constraintType": "muststarton",
"End_Date": null,
"D_KeyDate": 1
},
{
"D_ID": 2,
"Name": "abc",
"Relates_To": "123",
"Start_Date": "2016-08-31T00:00:00",
"End_Date": null,
"duration": 1,
"constraintType": "muststarton",
"D_KeyDate": 1
},
{
"D_ID": 3,
"Name": "abc1",
"Relates_To": "123",
"Start_Date": "2016-08-20T00:00:00",
"duration": 1,
"constraintType": "muststarton",
"End_Date": null,
"D_KeyDate": 1
},
{
"D_ID": 4,
"Name": "abcd",
"Relates_To": "123",
"Start_Date": "2016-10-21T00:00:00",
"duration": 1,
"constraintType": "muststarton",
"End_Date": null,
"D_KeyDate": 1
}
]
},
"dependencies": {
"rows": []
},
"resources": {
"rows": [
{ "id" : 1, "name" : "Celia", "city" : "Barcelona", "calendar" : "general", "image" : "celia.jpg" },
{ "id" : 2, "name" : "Lee", "city" : "London", "calendar" : "general", "image" : "lee.jpg" },
{ "id" : 3, "name" : "Macy", "city" : "New York","calendar" : "general", "image" : "macy.jpg" },
{ "id" : 4, "name" : "Madison", "city" : "Barcelona", "calendar" : "general","image" : "madison.jpg" },
{ "id" : 5, "name" : "Rob", "city" : "Rome", "calendar" : "business", "image" : "rob.jpg" },
{ "id" : 6, "name" : "Dave", "city" : "Barcelona", "calendar" : "night", "image" : "dave.jpg" },
{ "id" : 7, "name" : "Dan", "city" : "London", "calendar" : "night", "image" : "dan.jpg" },
{ "id" : 8, "name" : "George", "city" : "New York", "calendar" : "general", "image" : "george.jpg" },
{ "id" : 9, "name" : "Gloria", "city" : "Rome", "calendar" : "general", "image" : "gloria.jpg" },
{ "id" : 10, "name" : "Henrik", "city" : "London", "calendar" : "general", "image" : "henrik.jpg" }
]
},
"assignments": {
"rows": [
{ "id" : 1, "event" : 1, "resource" : 1 },
{ "id" : 2, "event" : 2, "resource" : 2 },
{ "id" : 3, "event" : 3, "resource" : 3 },
{ "id" : 4, "event" : 4, "resource" : 4 }
]
},
"timeRanges": {
"rows": []
}
}
Then it will not work as I want it to work.