Does anyone have some experience if and when yes how to use the blueprint variables in an user macro.
In my case, I have the blueprint decision here.
This blueprint has a variable called Status.
Here is my macro code:
## @Param Priority:title=Priority|type=enum|enumValues=nicht gestartet,in arbeit,Entschieden
#set($priorityvalues = {"nicht gestartet" : "Red", "in arbeit" : "Yellow", "Entschieden" : "Green"})
#set($priorityoutline = {"nicht gestartet" : "false", "in arbeit" : "false", "Entschieden" : "false"})
#set($priorityColor = $priorityvalues.get($paramPriority))
#set($prioritySubtle = $priorityoutline.get($paramPriority))
<ac:structured-macro ac:name="status" ac:schema-version="1">
<ac:parameter ac:name="colour">$!priorityColor</ac:parameter>
<ac:parameter ac:name="title">$!paramPriority</ac:parameter>
<ac:parameter ac:name="subtle">$!prioritySubtle</ac:parameter>
</ac:structured-macro>
I would like to use this macro in the blueprint decision.
The user macro should take the set blueprint variable status (lets say "in arbeit") and use it in the macro code instead of the macro variable paramPriority.
thanks