You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.