Apply skinparam to individual group in sequence diagram

+1 vote
asked Jan 20, 2020 in Question / help by itmatt1978
Hi I want to change the border color of only one of my diagrams groups. My current attempt seems to always set a global for all groups:-

@startuml

group Blue group
    TEST1->TEST2: Test1
end
group Red group
    skinparam sequenceGroupBorderColor red
    TEST1->TEST2: Application BUG ticket raised for Product Owner to prioritise
end
@enduml

How can I do this?

1 Answer

0 votes
answered Jan 26, 2020 by systemsincode (180 points)

(I must of used a temp login and it's not letting me edit the above with a registered login with same id)

OK - you can customise individual elements via the it's <<.stereotype>> but only certain objects can have this, and I don't believe groups are one of them.

Luckily there is the following syntax to work around this limitation::

group#Blue #LightBlue  Blue
    TEST1->TEST2: Test1
end group
group#Red #violet Red
    TEST1->TEST2: Test2
end group

Found in https://forum.plantuml.net/6410/can-we-format-groups-or-have-different-styles-for-group-alt

...