Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Gantt: Specify start and end of an activity based on other activities

0 votes
It would be nice to say:
 
@startuml
[Development 0.1] lasts 9 days
[Production 0.1] starts at [Development 0.1]'s end and ends at [Production 0.2]'s start
[Development 0.2] starts at [Development 0.1]'s end and lasts 6 days
[Production 0.2] starts at [Development 0.2]'s end 
@enduml
 
This causes IllegalStateException
asked Mar 7 in bug by jhannes (210 points)

1 Answer

+1 vote
 
Best answer

Ok, thanks for the feedback.

We will improve error management. Generally, tasks has to be defined before beeing used.

In the meantime, you can use:

[Development 0.1] lasts 9 days
[Production 0.1] starts at [Development 0.1]'s end
[Development 0.2] starts at [Development 0.1]'s end and lasts 6 days
[Production 0.2] starts at [Development 0.2]'s end
[Production 0.1] ends at [Production 0.2]'s start

Regards,
 

answered Mar 7 by plantuml (124,290 points)
selected Mar 7 by jhannes
This works fine for me. I'm used to this restriction with other PlantUml diagrams anyway.

However, my (silly) example should probably not cause IllegalStateException but a more reasonable error message, such as "Production 0.2 is not defined at this point"
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...