Part time workers in gantt diagrams (individual holidays)

0 votes
asked Oct 13, 2019 in Wanted features by AKielhorn (160 points)
We have some workers who only work on certain days.

I would like to exclude them from planning on these days.

When I reduce the resource percentage to 60% I get almost correct diagrams for long tasks, but they are off by days for short tasks. In the enclosed diagram Task_1a will be finished on Tuesday and triggers Task_1al. If I set the resource to 60% it will finish on Wednesday and the milestone is shifted.

Task_2a should start on Monday because PTW is not working for me on Th and Fr.

Thus the milestone "Fertig" will be reached 2 days later.

The same feature could be used to block days when someone is on holiday.

Possible syntax:

thursday are closed on {PTW}

friday are closed on {PTW}

2019/10/04 is closed on {FTW} ' Bridge day

@startgantt
project starts the 2019/10/01
saturday are closed
sunday are closed

' Part time Workers
' PTW works only on Monday -- Wednesday

[Task_1]                                      on  {FTW} lasts 4 days
[Task_1a]                                     on  {PTW} lasts 2 days
[Task_1l] happens at [Task_1]'s end
[Task_1a] starts 1 day after [Task_1]'s end
[Task_1a] is colored in Coral
[Task_1al] happens at [Task_1a]'s end
[Task_2]                                      on  {FTW} lasts 3 days
[Task_2] starts at [Task_1]'s end
[Task_2a]                                     on  {PTW} lasts 3 days
[Task_2a] starts at [Task_2]'s end
[Task_2a] is colored in Coral
[Fertig] happens 2 days after [Task_2a]'s end

@endgantt

2 Answers

0 votes
answered Oct 13, 2019 by plantuml (294,960 points)

This is not exactly your request, but you can have :

@startgantt
Project starts the 2018/04/03
sunday are closed
{Alice} is off on 2018/04/04 to 2018/04/06
 
[T1] on {Alice:50%} lasts 5 days
[T2] lasts 2 days
then [T3] on {Alice} lasts 2 days
@endgantt

http://www.plantuml.com/plantuml/uml/LOwz3e8m54RtFiMtE5D-CCO9ty21ZJ0qz2AOfarwhuCnVNSHJD3ndfnpypKi9ihDU15rZU5EWs1539a8XSvFcQuoNIf-U6kUC94mkC1arUlYve4IPaOOHmI_wnKaxDSH2gfhy_xZRDMvreS4PrWODPR7l0X5_oN5HcGYZwujVxhqRpJaxJh-3G00

The support for part time worker is a good idea.
So we will probably add something like:
thursday are closed on {PTW}

We'll post a message here when ready
Thanks for your suggestion!

0 votes
answered Oct 14, 2019 by plantuml (294,960 points)

With last beta http://beta.plantuml.net/plantuml.jar
you can now define "off" day for a ressource.
You can also force a ressource to work on a usually closed day.

For example:

@startgantt
Project starts the 2019/10/01
{Alice} is off the 2019/10/16
' We are lazy now: you can use for/the/at
{Alice} is off at monday
{Alice} is on at 2019/10/21
 
[T1] on {Alice} lasts 30 days
@endgantt

Thanks again for your suggestion.
Tell us if it's not what you were expecting !

commented Oct 14, 2019 by AKielhorn (160 points)

Thanks, that is exactly that I had in mind.

You can also force a ressource to work on a usually closed day.

I will ask them politelysmiley

Is there a way to put these "off" definitions into a separate file and include them?

If not i'll add some shell magic, something like

head -n 2 infile + holiday file + tail -n +2 infile > resultfile.

Thanks for the quick reaction!

commented Oct 14, 2019 by plantuml (294,960 points)

Is there a way to put these "off" definitions into a separate file and include them?

You can use the preprocessor for that (see !include  at http://plantuml.com/preprocessing ).

We did not test it, but it should simply work.

commented Oct 17, 2019 by AKielhorn (160 points)
It does.

I created a file with all the individual "off" days and the company wide holidays. Thus I have only one place to update.

Great tool, thanks!
...