plantuml / plantuml

Generate diagrams from textual description
https://plantuml.com
Other
9.66k stars 878 forks source link

Resource off is not propergated to tasks ends. #1711

Closed gmuellerinform closed 1 month ago

gmuellerinform commented 1 month ago

Describe the bug Resource off is not propergated to tasks ends.

To Reproduce Steps to reproduce the behavior:

[Task1] as [T1] on {UserA} lasts 14 days [Milestone1] as [M1] happens after [T1]'s end {UserA} is off on sunday {UserA} is off on saturday

Expected behavior Milestone 1 should happen 4 days later

The-Lum commented 1 month ago

Hello @gmuellerinform,

Thanks for the report.

In fact it is due to the linear (top to bottom) internal algo.

Compare

@startgantt
project starts 2024-02-01
[Task1] as [T1] on {UserA} lasts 14 days
[Milestone1] as [M1] happens after [T1]'s end
{UserA} is off on sunday
{UserA} is off on saturday
@endgantt

With:

@startgantt
project starts 2024-02-01

{UserA} is off on sunday
{UserA} is off on saturday

[Task1] as [T1] on {UserA} lasts 14 days
[Milestone1] as [M1] happens after [T1]'s end

@endgantt

See similar pseudo-remark here:

If that can help, Regards, Th.

gmuellerinform commented 1 month ago

Thanks, it works! Maybe add a bigger info box in the documentation?