Our state of the art Gantt chart


Post by ctdev »

When loading the Gantt chart the task start dates sent by our server seem to be overridden by a default start date so all tasks start on the same date.

How do I display the tasks with the date defined in our JSON without adding a dependancy

Screenshot 2020-06-25 at 14.26.50.png
Screenshot 2020-06-25 at 14.26.50.png (34.9 KiB) Viewed 416 times

Full JSON

{
  "success": true,
  "project": {
    "calendar": "general",
    "startDate": "2020-03-17",
    "endDate": "2020-06-25"
  },
  "calendars": {
    "rows": [
      {
        "id": "general",
        "name": "General",
        "intervals": [
          {
            "recurrentStartDate": "on Sat at 0:00",
            "recurrentEndDate": "on Mon at 0:00",
            "isWorking": false
          }
        ]
      }
    ]
  },
  "tasks": {
    "rows": [
      {
        "id": 1,
        "name": "task 1",
        "percentDone": 0,
        "startDate": "2020-04-17 00:00:00",
        "endDate": "2020-06-06 14:55:06",
        "expanded": false,
        "children": [

    ]
  },
  {
    "id": 2,
    "name": "task 2",
    "percentDone": 0,
    "startDate": "2020-05-17 00:00:00",
    "endDate": "2020-06-06 14:55:06",
    "expanded": false,
    "children": [

    ]
  },
  {
    "id": 3,
    "name": "task 3",
    "percentDone": 0,
    "startDate": "2020-03-17 00:00:00",
    "endDate": "2020-06-25 14:55:06",
    "expanded": false,
    "children": [

    ]
  },
  {
    "id": 5,
    "name": "task 4",
    "percentDone": 25,
    "startDate": "2020-04-17 00:00:00",
    "endDate": "2020-06-06 14:55:06",
    "expanded": false,
    "children": [

    ]
  }
]
  },
  "timeRanges": {
    "rows": [
      {
        "name": "Important date",
        "startDate": "2020-03-04"
      }
    ]
  }
}

Post by mats »

Either use constraints or set them to be manually scheduled in your data.


Post Reply