Hi,
I am working with different projects in JIRA. And only one includes components which I want to push into JIRA.
My form works like this:
- first I select the corresponding project
- then another dropdown appears with the corresponding project (= the field "component")
Therefore I would like to have a condiiton which only sets the component field in my created JIRA issue, if a component is selected in the component dropdown.
Unfortunately, none of my conditions work:
It would be really nice if someone would help me.
Thanks. :)
Please see this page on how to check for nulls in Velocity templates: https://wiki.apache.org/velocity/CheckingForNull
With ConfiForms, the values for fields are also available in the Velocity context via direct names, like
${component}
in your case. Which means you can do the following
#if(${component})
"components": [{"name":"[entry.component.label]"}]
#end
Here's the JSON to support multiple component values:
"components": [[entry.Components.transform(label).asArrayOfKVPairs(name)]]
Best,
Cameron
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.