None of my if statements appear to be working
Based on a radio group with id 1 = yes, add components
Based on radio group with id 1 = project A, id 2 = Project B, set the project
Could not prepare JSON: invalid format, not sure what I'm doing wrong.
Hi @SKAdmin
Please see an example here which might be solve your problem https://community.atlassian.com/t5/Jira-questions/Confiform-Action-to-create-Jira-ticket-Using-if-end/qaq-p/2273681
That has gotten me closer,
project part works now with
#if(${jiraproject.label} == 'A') "project":{"key": "PA"}, #end
#if(${jiraproject.label} == 'B') "project":{"key": "PB"}, #end
but now I get the Invalid format. Duplicate key "components"
#if(${vfxneeded.label} == 'Yes') "components": [{"name":"A"}], #end #if(${audioneeded.label} == 'Yes') "components": [{"name":"B"}], #end
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @SKAdmin
Try this
#set( $components = '' )
#if(${vfxneeded.label} == 'Yes') #set ($components = '{"name":"A"}') #end
#if(${audioneeded.label} == 'Yes') #if($components != '') #set ($components = $components + ',') #end #set ($components = $!{components} + '{"name":"B"}') #end
#if($components != '')
"components" : [${components}],
#end
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hard to tell without seeing what you have. Any server logs or the configuration you can share? Feel free to open a support ticket with us, if necessary - https://wiki.vertuna.com/display/VERTUNA/Support+Request+Form
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.