I have created 2 custom user macros, one works and the other does not. It gives the error of Unknown macro. I would appreciate any help with figuring out the issue.
Below is the user macro that works:
## @Param Status:title=StatusColor|type=enum|enumValues=New Request,In Progress,Completed|required=true|desc=Choose a status.
#if ( $paramStatus == "New Request" )
#set ( $paramColor = "Yellow" )
#elseif ( $paramStatus == "In Progress" )
#set ( $paramColor = "Blue" )
#elseif ( $paramStatus == "Completed" )
#set ( $paramColor = "Green" )
#else
#set ( $paramColor = "Yellow" )
#end
<ac:structured-macro ac:name="status">
<ac:parameter ac:name="color">$paramColor</ac:parameter>
<ac:parameter ac:name="title">$paramStatus</ac:parameter>
</ac:macro>
Below is the user macro that is throwing the error:
## @Param Urgency:title=UrgencyColor|type=enum|enumValues=High,Medium,Low|required=true|desc=Choose an urgency.
#if ( $paramUrgency == "High" )
#set ( $paramColor = "Red" )
#elseif ( $paramUrgency == "Medium" )
#set ( $paramColor = "Orange" )
#elseif ( $paramUrgency == "Low" )
#set ( $paramColor = "Yellow" )
#else
#set ( $paramColor = "Yellow" )
#end
<ac:structured-macro ac:name="urgency">
<ac:parameter ac:name="color">$paramColor</ac:parameter>
<ac:parameter ac:name="title">$paramUrgency</ac:parameter>
</ac:macro>