Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Comment why the end date is used for calendar work package events

Christophe Bliarde67843b76d07
diff --git a/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts b/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts
index 3604486b879..0eef5cdd7a0 100644
--- a/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts
+++ b/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts
@@ -401,10 +401,14 @@ export class WorkPackagesCalendarComponent extends UntilDestroyedMixin implement
const endDate = this.workPackagesCalendar.eventDate(workPackage, 'due');
const exclusiveEnd = endDate && moment(endDate).add(1, 'days').format('YYYY-MM-DD');
+ // An event is visible on the calendar only if it has a start date.
+ // That's why the end date is used as event start date if the work package
+ // does not have a proper start date.
+ const visibleStart = startDate || endDate;
return {
title: workPackage.subject,
- start: startDate || endDate,
+ start: visibleStart,
editable: this.workPackagesCalendar.dateEditable(workPackage),
durationEditable: this.workPackagesCalendar.eventDurationEditable(workPackage),
end: exclusiveEnd,