Add support of node colors to WBS for single nodes

0 votes
asked Nov 4, 2020 in Wanted features by Markus

I really like the simplicity of the WBS syntax to setup worpackage breakdown structures. Since in many cases (e.g. research projects) workpackages are spread over a variety of organizations some basic color coding would be really helpfull. I have found several possiblities to automatically change colors for levels... but would really appreciate the possibility to use e.g. the mindmap syntax to change the color of single nodes like:

* this is the partner workpackage

**[red] this is my workpackage

Since it does exist for mindmaps I hope it is not too much work to implement such feature

2 Answers

0 votes
answered Nov 5, 2020 by The-Lu (33,360 points)

Hello M.,

A possible workaround is to use stereotype style (css), as:

@startwbs
<style>
wbsDiagram {
  .red {
      BackgroundColor red
}
</style>
* this is the partner workpackage
** this is my workpackage <<red>>
** this is another workpackage
@endwbs

See also on:

If that can help,
Regards,
Th.

commented Nov 5, 2020 by Markus
edited Nov 5, 2020
Thanks a lot! I already tried this but it doesn't work. Your example doesn't work on my installation as well. I use plantuml on visual studio code. Do I have to activate/ update something?

EDIT:

PUML is very picky about newlines. You have to have the brackets and newlines exactly where you have them

Best,

Markus
commented Nov 5, 2020 by plantuml (259,840 points)

You can check your PlantUML version using:

@startuml
version
@enduml

0 votes
answered Nov 6, 2020 by plantuml (259,840 points)

This has been implemented in last beta http://beta.plantuml.net/plantuml.jar and on the online server.

commented Nov 6, 2020 by Markus Grebenstein
Would you mind being more specific since I don't get it? What has been implemented? What is shown above (we are aware of that since the example given by The-Lu worked on the servers and my installation)? If not: what is the syntax? I haven't found a documentation yet.

Thanks a lot and all the best,

Markus
commented Nov 6, 2020 by plantuml (259,840 points)

Sorry, we are doing things too fast!

You can click on the image to have the syntax.

This new syntax is:

@startwbs
*[#blue] this is the partner workpackage
**[#red] this is my workpackage
** this is another workpackage
@endwbs

It is not documented yet.

Tell us if it's not clear.

...