I don't have a lot of control of my confluence configuration and i am not a web developer by trade. so forgive me if i am butchering the definitions.
Im trying to use a confiform to create a JIRA issues
i wanted to use velocity code to help "build an array of labels to add to an issue
But i have had zero luck with using velocity variables in my enviroment.
{ "fields":{
"project":{"key":"somekey"},
"issuetype":{"name":"Software Design"},
"priority":{"name":"Medium"},
"components":[{"name":"[entry.ClassSelector.escapeJSON]"}],
"description":"[entry.issueDetails.escapeJSON]",
#if ("[entry.valueSeverity.escapeJSON]" != "")
"customfield_11853":{"value":"[entry.valueSeverity.escapeJSON]"},
#end
#if([entry.IsShipCheckReq] == true)
#set( $labelStr = "ShipCheckReq," )
#end
#if([entry.IsDiscrep] == true)
#set( $labelStr = "$labelStr discrep," )
#end
#if([entry.IsSafetyCritical] == true)
#set( $labelStr = "$labelStr Safety," )
#end
#if([entry.isFleetsupport] == true)
#set( $labelStr = "$labelStr FleetSupport," )
#end
#if([entry.isTask] == true)
#set( $labelStr = "$labelStr Task," )
#end
#set( $labelStr = "$labelStr""formGenerated""" )
"labels":["$labelStr"],
"summary":"[entry.issueName.escapeJSON]" }
}