Gantt View: Task that starts before Gantt date range doesn't show on Gantt chart #2071

Closed
opened 2026-03-22 13:54:47 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @computrav on GitHub (Jan 31, 2025).

Description

When looking at tasks in the Gantt view, if you have a task that starts before the start date of the view, but ends >= that start date of the view, it doesn't show in the Gantt chart. This is confusing, since the task is still "open". I would expect it to show up starting at the far left of the Gantt chart, and extending until it's end date (which may be within the Gantt view date range, or after it, in which case it would extend to the far right of the Gantt chart.

Vikunja Version

Latest (I assume) -- on try.vikunja.io

Browser and version

Brave 1.74.51 Win 10

Can you reproduce the bug on the Vikunja demo site?

Yes

Screenshots

Test Task with start date of 20-Jan and end date of 10-Feb:
Image

Default Gantt view date range auto-sets start date before start of the task, so it shows up fine:
Image

...but if I set Gantt view date range to start after the start of the Task, it doesn't show:
Image

I would expect the task to still show up (red bar in this mock-up):
Image

Originally created by @computrav on GitHub (Jan 31, 2025). ### Description When looking at tasks in the Gantt view, if you have a task that starts before the start date of the view, but ends >= that start date of the view, it doesn't show in the Gantt chart. This is confusing, since the task is still "open". I would expect it to show up starting at the far left of the Gantt chart, and extending until it's end date (which may be within the Gantt view date range, or after it, in which case it would extend to the far right of the Gantt chart. ### Vikunja Version Latest (I assume) -- on try.vikunja.io ### Browser and version Brave 1.74.51 Win 10 ### Can you reproduce the bug on the Vikunja demo site? Yes ### Screenshots **Test Task with start date of 20-Jan and end date of 10-Feb:** ![Image](https://github.com/user-attachments/assets/6cddc5d5-045d-43fa-99ea-891dafc475f8) **Default Gantt view date range auto-sets start date before start of the task, so it shows up fine:** ![Image](https://github.com/user-attachments/assets/08e811f0-f94e-4d77-bfa3-507b3b5aca67) **...but if I set Gantt view date range to start *after* the start of the Task, it doesn't show:** ![Image](https://github.com/user-attachments/assets/b0d42116-0b2c-41fa-bd99-b4057ba49a7b) **I would expect the task to still show up (red bar in this mock-up):** ![Image](https://github.com/user-attachments/assets/92a35aa8-6f77-4a38-b365-675e33c0d2a1)
Author
Owner

@computrav commented on GitHub (Jan 31, 2025):

It appears that the Gantt view is just loading tasks with the same timeframe as the Gantt.
Instead I think tasks should be loaded where:

  • start_date <= Gantt end date, AND
  • end_date >= Gantt start date

ASCII showing the scenarios between Task Date Ranges and GANTT timeframe:

                                 [======== GANTT TIME FRAME =======]
<----Task A---->
                        <--------- Task B ----->
                        <--------- Task C -------------------------------->
                                                          <----- Task D ----------------->
                                                                          <----- Task E ------>

Expected Behavior:

  • Task A and E should not show up at all
  • Tasks B, C, and D should show up.
@computrav commented on GitHub (Jan 31, 2025): It appears that the Gantt view is just loading tasks with the same timeframe as the Gantt. Instead I think tasks should be loaded where: - start_date <= Gantt end date, AND - end_date >= Gantt start date **ASCII showing the scenarios between Task Date Ranges and GANTT timeframe:** ``` [======== GANTT TIME FRAME =======] <----Task A----> <--------- Task B -----> <--------- Task C --------------------------------> <----- Task D -----------------> <----- Task E ------> ``` **Expected Behavior:** - Task A and E should not show up at all - Tasks B, C, and D should show up.
Author
Owner

@kolaente commented on GitHub (Feb 6, 2025):

This sounds like a duplicate of https://github.com/go-vikunja/vikunja/issues/149

@kolaente commented on GitHub (Feb 6, 2025): This sounds like a duplicate of https://github.com/go-vikunja/vikunja/issues/149
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#2071