{
  "success" : true,
  "project" : {
    "calendar"     : "general",
    "startDate"    : "2019-01-14",
    "hoursPerDay"  : 24,
    "daysPerWeek"  : 5,
    "daysPerMonth" : 20
  },
  "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",
            "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",
            "intervals" : [
              {
                "recurrentStartDate" : "every weekday at 6:00",
                "recurrentEndDate"   : "every weekday at 22:00",
                "isWorking"          : false
              }
            ]
          }
        ]
      }
    ]
  },
  "tasks" : {
    "rows" : [
      {
        "id"          : 1000,
        "name"        : "Launch SaaS Product",
        "percentDone" : 34,
        "startDate"   : "2019-01-14",
        "endDate"     : "2019-03-20",
        "duration"    : 47,
        "expanded"    : true,
        "children"    : [
          {
            "id"          : 1,
            "name"        : "Setup web server",
            "percentDone" : 42.3,
            "duration"    : 7,
            "startDate"   : "2019-01-14",
            "rollup"      : true,
            "endDate"     : "2019-01-23",
            "expanded"    : true,
            "children"    : [
              {
                "id"          : 11,
                "name"        : "Install Apache",
                "percentDone" : 50,
                "startDate"   : "2019-01-14",
                "rollup"      : true,
                "duration"    : 5,
                "endDate"     : "2019-01-17"
              },
              {
                "id"             : 12,
                "name"           : "Configure firewall",
                "percentDone"    : 50,
                "startDate"      : "2019-01-14",
                "rollup"         : true,
                "duration"       : 4,
                "endDate"        : "2019-01-17",
                "showInTimeline" : true,
                "segments"       : [
                  {
                    "name"      : "DDOS",
                    "startDate" : "2019-01-14",
                    "endDate"   : "2019-01-18"
                  },
                  {
                    "name"      : "Ports",
                    "startDate" : "2019-01-21",
                    "endDate"   : "2019-01-22"
                  },
                  {
                    "name"      : "Malware",
                    "startDate" : "2019-01-24",
                    "endDate"   : "2019-01-26"
                  }
                ]
              },
              {
                "id"          : 13,
                "name"        : "Setup load balancer",
                "percentDone" : 50,
                "startDate"   : "2019-01-14",
                "rollup"      : true,
                "duration"    : 4,
                "endDate"     : "2019-01-17",
                "segments"    : [
                  {
                    "name"      : "Install",
                    "startDate" : "2019-01-14",
                    "endDate"   : "2019-01-17"
                  },
                  {
                    "name"      : "Configure",
                    "startDate" : "2019-01-18",
                    "endDate"   : "2019-01-22"
                  }
                ]
              },
              {
                "id"          : 14,
                "name"        : "Configure ports",
                "percentDone" : 50,
                "startDate"   : "2019-01-14",
                "rollup"      : true,
                "duration"    : 3,
                "endDate"     : "2019-01-16",
                "segments"    : [
                  {
                    "name"      : "Public",
                    "startDate" : "2019-01-14",
                    "endDate"   : "2019-01-15"
                  },
                  {
                    "name"      : "Internal",
                    "startDate" : "2019-01-16",
                    "endDate"   : "2019-01-18"
                  },
                  {
                    "name"      : "DMZ",
                    "startDate" : "2019-01-21",
                    "endDate"   : "2019-01-22"
                  }
                ]
              },
              {
                "id"          : 15,
                "name"        : "Run tests",
                "percentDone" : 0,
                "startDate"   : "2019-01-28",
                "rollup"      : true,
                "duration"    : 5,
                "endDate"     : "2019-02-02"
              }
            ]
          },
          {
            "id"          : 2,
            "name"        : "Website Design",
            "percentDone" : 34,
            "startDate"   : "2019-01-23",
            "rollup"      : true,
            "endDate"     : "2019-02-13",
            "duration"    : 15,
            "expanded"    : true,
            "children"    : [
              {
                "id"          : 21,
                "name"        : "Contact designers",
                "percentDone" : 70,
                "startDate"   : "2019-01-23",
                "rollup"      : true,
                "duration"    : 5,
                "endDate"     : "2019-01-30"
              },
              {
                "id"          : 22,
                "name"        : "Create shortlist of three designers",
                "percentDone" : 60,
                "startDate"   : "2019-01-30",
                "rollup"      : true,
                "duration"    : 1,
                "endDate"     : "2019-01-31"
              },
              {
                "id"             : 23,
                "name"           : "Select & review final design",
                "percentDone"    : 50,
                "startDate"      : "2019-01-31",
                "rollup"         : true,
                "duration"       : 2,
                "showInTimeline" : true,
                "endDate"        : "2019-02-02"
              },
              {
                "id"          : 24,
                "name"        : "Inform management about decision",
                "percentDone" : 100,
                "startDate"   : "2019-02-04",
                "rollup"      : true,
                "duration"    : 0
              },
              {
                "id"          : 25,
                "name"        : "Apply design to web site",
                "percentDone" : 0,
                "startDate"   : "2019-02-04",
                "rollup"      : true,
                "duration"    : 7,
                "endDate"     : "2019-02-13"
              }
            ]
          },
          {
            "id"          : 3,
            "name"        : "Setup Test Strategy",
            "percentDone" : 14.5,
            "startDate"   : "2019-01-14",
            "expanded"    : true,
            "children"    : [
              {
                "id"          : 31,
                "name"        : "Hire QA staff",
                "percentDone" : 40,
                "startDate"   : "2019-01-14",
                "duration"    : 5,
                "endDate"     : "2019-01-19"
              },
              {
                "id"          : 33,
                "name"        : "Write test specs",
                "percentDone" : 9.6,
                "duration"    : 10,
                "startDate"   : "2019-01-21",
                "expanded"    : true,
                "children"    : [
                  {
                    "id"             : 331,
                    "name"           : "Unit tests",
                    "percentDone"    : 20,
                    "startDate"      : "2019-01-21",
                    "duration"       : 10,
                    "endDate"        : "2019-02-02",
                    "showInTimeline" : true
                  },
                  {
                    "id"             : 332,
                    "name"           : "UI unit tests / individual screens",
                    "percentDone"    : 10,
                    "startDate"      : "2019-01-21",
                    "duration"       : 5,
                    "endDate"        : "2019-01-26",
                    "showInTimeline" : true
                  },
                  {
                    "id"          : 333,
                    "name"        : "Application tests",
                    "percentDone" : 0,
                    "startDate"   : "2019-01-21",
                    "duration"    : 10,
                    "endDate"     : "2019-02-02",
                    "segments"    : [
                      { "name" : "Stage 1", "startDate" : "2019-01-21", "endDate" : "2019-01-25" },
                      { "name" : "Stage 2", "startDate" : "2019-01-27", "endDate" : "2019-02-01" }
                    ]
                  },
                  {
                    "id"          : 334,
                    "name"        : "Monkey tests",
                    "percentDone" : 0,
                    "startDate"   : "2019-01-21",
                    "duration"    : 1,
                    "endDate"     : "2019-01-22"
                  }
                ],
                "endDate" : "2019-02-02"
              }
            ],
            "endDate"  : "2019-02-02",
            "duration" : 15
          },
          {
            "id"          : 4,
            "name"        : "Application Implementation",
            "percentDone" : 39.3,
            "startDate"   : "2019-02-04",
            "duration"    : 32,
            "expanded"    : true,
            "children"    : [
              {
                "id"       : 400,
                "name"     : "Phase #1",
                "expanded" : true,
                "duration" : 7,
                "children" : [
                  {
                    "id"          : 41,
                    "name"        : "Authentication module",
                    "percentDone" : 100,
                    "duration"    : 5,
                    "startDate"   : "2019-02-04",
                    "endDate"     : "2019-02-09"
                  },
                  {
                    "id"          : 42,
                    "name"        : "Single sign on",
                    "percentDone" : 100,
                    "duration"    : 3,
                    "startDate"   : "2019-02-04",
                    "endDate"     : "2019-02-07"
                  },
                  {
                    "id"          : 43,
                    "name"        : "Implement role based access",
                    "percentDone" : 0,
                    "duration"    : 4,
                    "startDate"   : "2019-02-04",
                    "endDate"     : "2019-02-08"
                  },
                  {
                    "id"             : 44,
                    "name"           : "Basic test coverage",
                    "showInTimeline" : true,
                    "cls"            : "important",
                    "percentDone"    : 0,
                    "duration"       : 3,
                    "startDate"      : "2019-02-04",
                    "endDate"        : "2019-02-07",
                    "segments"       : [
                      { "name" : "Unit", "startDate" : "2019-02-04", "endDate" : "2019-02-05" },
                      { "name" : "UI", "startDate" : "2019-02-06", "endDate" : "2019-02-07" }
                    ]

                  },
                  {
                    "id"          : 45,
                    "name"        : "Verify high test coverage",
                    "percentDone" : 0,
                    "duration"    : 2,
                    "startDate"   : "2019-02-11",
                    "endDate"     : "2019-02-13"
                  },
                  {
                    "id"             : 46,
                    "name"           : "Make backup",
                    "percentDone"    : 0,
                    "duration"       : 0,
                    "startDate"      : "2019-02-13",
                    "endDate"        : "2019-02-13",
                    "showInTimeline" : true,
                    "rollup"         : true
                  }
                ],
                "percentDone" : 47,
                "startDate"   : "2019-02-04",
                "endDate"     : "2019-02-09"
              },
              {
                "id"       : 401,
                "name"     : "Phase #2",
                "expanded" : true,
                "duration" : 21,
                "children" : [
                  {
                    "id"          : 4011,
                    "name"        : "Authentication module",
                    "percentDone" : 70,
                    "duration"    : 15,
                    "startDate"   : "2019-02-11",
                    "endDate"     : "2019-03-02"
                  },
                  {
                    "id"          : 4012,
                    "name"        : "Single sign on",
                    "percentDone" : 60,
                    "duration"    : 5,
                    "startDate"   : "2019-02-11",
                    "endDate"     : "2019-02-16"
                  },
                  {
                    "id"          : 4013,
                    "name"        : "Implement role based access",
                    "percentDone" : 50,
                    "duration"    : 21,
                    "startDate"   : "2019-02-11",
                    "endDate"     : "2019-03-12"
                  },
                  {
                    "id"          : 4014,
                    "name"        : "Basic test coverage",
                    "percentDone" : 0,
                    "duration"    : 20,
                    "startDate"   : "2019-02-13",
                    "endDate"     : "2019-03-09",
                    "segments"    : [
                      { "name" : "Unit", "startDate" : "2019-02-13", "endDate" : "2019-02-16" },
                      { "name" : "UI", "startDate" : "2019-02-20", "endDate" : "2019-02-24" },
                      { "name" : "A/B", "startDate" : "2019-03-02", "endDate" : "2019-03-09" }
                    ]
                  },
                  {
                    "id"          : 4015,
                    "name"        : "Verify high test coverage",
                    "percentDone" : 0,
                    "duration"    : 4,
                    "startDate"   : "2019-02-11",
                    "endDate"     : "2019-02-15"
                  }
                ],
                "startDate"   : "2019-02-11",
                "endDate"     : "2019-03-12",
                "percentDone" : 36.9
              },
              {
                "id"       : 402,
                "name"     : "Acceptance phase",
                "expanded" : true,
                "children" : [
                  {
                    "id"          : 4031,
                    "name"        : "Company bug bash",
                    "percentDone" : 70,
                    "duration"    : 3,
                    "startDate"   : "2019-03-12",
                    "endDate"     : "2019-03-15"
                  },
                  {
                    "id"          : 4032,
                    "name"        : "Test all web pages",
                    "percentDone" : 60,
                    "duration"    : 2,
                    "startDate"   : "2019-03-12",
                    "endDate"     : "2019-03-14"
                  },
                  {
                    "id"          : 4033,
                    "name"        : "Verify no broken links",
                    "percentDone" : 50,
                    "duration"    : 4,
                    "startDate"   : "2019-03-12",
                    "endDate"     : "2019-03-16"
                  },
                  {
                    "id"          : 4034,
                    "name"        : "Make test release",
                    "percentDone" : 0,
                    "duration"    : 3,
                    "startDate"   : "2019-03-12",
                    "endDate"     : "2019-03-15"
                  },
                  {
                    "id"          : 4035,
                    "name"        : "Send invitation email",
                    "percentDone" : 0,
                    "duration"    : 0,
                    "startDate"   : "2019-03-15",
                    "endDate"     : "2019-03-16"
                  },
                  {
                    "id"          : 4036,
                    "name"        : "Celebrate launch",
                    "iconCls"     : "b-fa b-fa-glass-cheers",
                    "percentDone" : 0,
                    "duration"    : 1,
                    "startDate"   : "2019-03-12",
                    "endDate"     : "2019-03-13"
                  }
                ],
                "startDate"   : "2019-03-12",
                "endDate"     : "2019-03-16",
                "duration"    : 4,
                "percentDone" : 40.8
              }
            ],
            "endDate" : "2019-03-16"
          }
        ]
      }
    ]
  },
  "dependencies" : {
    "rows" : [
      {
        "id"       : 1,
        "fromTask" : 11,
        "toTask"   : 15,
        "lag"      : 2
      },
      {
        "id"       : 2,
        "fromTask" : 12,
        "toTask"   : 15
      },
      {
        "id"       : 3,
        "fromTask" : 13,
        "toTask"   : 15
      },
      {
        "id"       : 4,
        "fromTask" : 14,
        "toTask"   : 15
      },
      {
        "id"       : 5,
        "fromTask" : 15,
        "toTask"   : 21
      },
      {
        "id"       : 7,
        "fromTask" : 21,
        "toTask"   : 22
      },
      {
        "id"       : 8,
        "fromTask" : 22,
        "toTask"   : 23
      },
      {
        "id"       : 9,
        "fromTask" : 23,
        "toTask"   : 24
      },
      {
        "id"       : 10,
        "fromTask" : 24,
        "toTask"   : 25
      },
      {
        "id"       : 11,
        "fromTask" : 31,
        "toTask"   : 331
      },
      {
        "id"       : 111,
        "fromTask" : 31,
        "toTask"   : 332
      },
      {
        "id"       : 112,
        "fromTask" : 31,
        "toTask"   : 333
      },
      {
        "id"       : 113,
        "fromTask" : 31,
        "toTask"   : 334
      },
      {
        "id"       : 12,
        "fromTask" : 400,
        "toTask"   : 401
      },
      {
        "id"       : 13,
        "fromTask" : 401,
        "toTask"   : 402
      },
      {
        "id"       : 15,
        "fromTask" : 3,
        "toTask"   : 4
      },
      {
        "id"       : 16,
        "fromTask" : 41,
        "toTask"   : 45
      },
      {
        "id"       : 17,
        "fromTask" : 42,
        "toTask"   : 45
      },
      {
        "id"       : 18,
        "fromTask" : 43,
        "toTask"   : 45
      },
      {
        "id"       : 19,
        "fromTask" : 44,
        "toTask"   : 45
      },
      {
        "id"       : 20,
        "fromTask" : 4034,
        "toTask"   : 4035
      },
      {
        "id"       : 21,
        "fromTask" : 4035,
        "toTask"   : 4036
      }
    ]
  },
  "resources" : {
    "rows" : [
      {
        "id"       : 1,
        "name"     : "Celia",
        "city"     : "Barcelona",
        "calendar" : null,
        "image"    : "celia.jpg"
      },
      {
        "id"       : 2,
        "name"     : "Lee",
        "city"     : "London",
        "calendar" : null,
        "image"    : "lee.jpg"
      },
      {
        "id"       : 3,
        "name"     : "Macy",
        "city"     : "New York",
        "calendar" : null,
        "image"    : "macy.jpg"
      },
      {
        "id"       : 4,
        "name"     : "Madison",
        "city"     : "Barcelona",
        "calendar" : null,
        "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" : null,
        "image"    : "george.jpg"
      },
      {
        "id"       : 9,
        "name"     : "Gloria",
        "city"     : "Rome",
        "calendar" : null,
        "image"    : "gloria.jpg"
      },
      {
        "id"       : 10,
        "name"     : "Henrik",
        "city"     : "London",
        "calendar" : null,
        "image"    : "henrik.jpg"
      }
    ]
  },
  "assignments" : {
    "rows" : [
      {
        "id"       : 1,
        "event"    : 11,
        "resource" : 1
      },
      {
        "id"       : 2,
        "event"    : 4033,
        "resource" : 1
      },
      {
        "id"       : 3,
        "event"    : 12,
        "resource" : 9
      },
      {
        "id"       : 4,
        "event"    : 13,
        "resource" : 2
      },
      {
        "id"       : 5,
        "event"    : 13,
        "resource" : 3
      },
      {
        "id"       : 6,
        "event"    : 13,
        "resource" : 6
      },
      {
        "id"       : 7,
        "event"    : 13,
        "resource" : 7
      },
      {
        "id"       : 8,
        "event"    : 13,
        "resource" : 8
      },
      {
        "id"       : 9,
        "event"    : 21,
        "resource" : 5
      },
      {
        "id"       : 10,
        "event"    : 21,
        "resource" : 9
      },
      {
        "id"       : 11,
        "event"    : 22,
        "resource" : 8
      },
      {
        "id"       : 12,
        "event"    : 25,
        "resource" : 3
      }
    ]
  },
  "timeRanges" : {
    "rows" : [
      {
        "id"           : 1,
        "name"         : "Important date",
        "startDate"    : "2019-01-30",
        "duration"     : 0,
        "durationUnit" : "d",
        "cls"          : "b-fa b-fa-diamond"
      }
    ]
  }
}
