Hey guys,
i am using confluence in my workenvironment with my team and we have this odd problem with user macros.
We want a custom status macro with selectable statuses instead of typing in a status. I found an example code somewhere and used it. It works fine but after a while something happens and editing or setting up that macro isn't possible anymore since it just keeps loading in the preview screen.
When i update the user macro without any changes it works again. But somehow something happens after awhile and the same problem occures. every user has the same problem until i update it. After the update, everyone can use it again.
Does anyone know what the problem might be.
The code to the macro is:
## @param Status:title=Status|type=enum|required=true|enumValues=BACKLOGGED,INPROGRESS,REVIEW,ONHOLD,DONE,DENIED|desc=Test Case Status.
#if ( $paramStatus == "BACKLOGGED" )
#set ( $color = "Grey" )
#elseif ( $paramStatus == "INPROGRESS" )
#set ( $color = "Blue" )
#elseif ( $paramStatus == "REVIEW" )
#set ( $color = "Yellow" )
#elseif ( $paramStatus == "ONHOLD" )
#set ( $color = "Yellow" )
#elseif ( $paramStatus == "DONE" )
#set ( $color = "Green" )
#elseif ( $paramStatus == "DENIED" )
#set ( $color = "Red" )
#else
#set ( $color = "Grey" )
#end
<ac:macro ac:name="status">
<ac:parameter ac:name="color">$color</ac:parameter>
<ac:parameter ac:name="title">$paramStatus</ac:parameter>
</ac:macro>