Closed tomnortonuk closed 9 months ago
So - on further investigation this appears to be to do with the fact that I am linking to information held in another list (Project) to source the Start and Due dates for the project.
I have successfully identified the internal names for the columns and updated the JSON, but it does not work (same output as the screenshot above). Is there an easy way to use a calculated date (e.g. first day of current year to last day of current year for example? or perhaps today - 6months to today + 12 months)? Many thanks :-)
Hello @tomnortonuk,
time and dates are not exactly my best field, but I tried to create a GANTT list from scratch, including the internal names specified in the sample tutorial. Furthermore, the date and time columns have no additonal settings. In other words, I've created them (with the exact internal names from the tutorial) and saved. Here is my result below, where all dates have been selected from the dropdown menù, so without writing them manually:
Here is an example of a date and time column I've created with no particular settings:
Can you provide more info about yours? I'm trying to figure out what's happening, since I'm curious about your use case 🤔
Hi @tomnortonuk !
On my end, I changed the locale so that the date is displayed in dd/MM/yyyy and used the lookup columns to display Project Start and Project End and got the same error.
Perhaps, but the date displayed using the lookup column may be recognized as a string, not a date. Therefore, they may not be displayed properly.
After tomorrow, I will investigate the detailed cause of the problem and try to find a workaround.
Hi @tomnortonuk . Sorry for the delay in replying.
It still seems that the date in the lookup column is recognized as a character, not a date, and the Gantt chart is not displayed.
As shown in the following image, I created a trial code to display a Gantt chart using a lookup column, using the Date operator to make the date in the lookup column be recognized as a date. Please try it when you have time.
Type | Internal Name | Note |
---|---|---|
Single line of text | Title | |
Single line of text | Start | Register in yyyy-MM-dd format so that the Date operator can recognize it as a date. |
Single line of text | End | Register in yyyy-MM-dd format so that the Date operator can recognize it as a date. |
Type | Internal Name |
---|---|
Single line of text | Title |
Lookup | Project |
Lookup | Project_x003a__x0020_Start |
Lookup | Project_x003a__x0020_End |
Date | TaskStart |
Date | TaskDue |
Number | Progress |
Choice | TaskType |
People (single select) | AssignedToUser |
Multilines of text (no format) | TaskDescription |
Since there seems to be no reply, I will close it. If you have any questions, sorry, but please create a new issue again.
Thank you for sharing this project - I'm excited to get this running well on my sites.
I am struggling to work around 'Invalid Date' for the Project Start and End dates. I initially thought this was due to regional settings for the site as it seems to show valid dates (although does not render the tasks in the timeline) when using US formatted dates.
One other complication may be that I am using a lookup item for project against the tasks which also brings in the Start and End Dates. I have established the backend column names used in Sharepoint and amended the JSON, but still not rendering correctly?
I've included a screen shot with US formatted Dates, and with UK , and also the list view so that you can see the values - in both cases the tasks do not render correctly across the date range.
Really appreciate your help and support :-)