I know adding the following code will add labels to JIRA Issue from Confluence Confiform plugin:
"Labels": ["Label1", "Label2"],
What if I want to add entry.field to the above code, how can that be done successfully?
For me the following line included in my IFTTT-JSON works:
"labels": ["[entry.label1]", "[entry.label2]"],
Whrere 'label1' and 'label2' are fields you defined in your ConfiForms form via a 'Confiforms Form Field Definition':
That's what my whole IFTTT-block looks like:
(ConfiForms Version: 2.12.4 )
Hope that helps!
Also, if you have a multi-value field in ConfiForms and you want to pass it to Jira into labels field then you can do it like this (assuming the field in ConfiForms is called "myfield")
"labels" : [[entry.myfield.asArray]]
See https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex, what issue can you see with this?
Ta
"labels": ["default-label-1","[entry.myfield.asArrayMultiSelect.escapeJSON]"],
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Issue is with [entry.myfield.asArrayMultiSelect.escapeJSON] producing something what potentially will break the JSON mapping, as you are wraooing it in quotes
Consider using this technique to see what gets constructed https://wiki.vertuna.com/spaces/CONFIFORMS/pages/180945533/Using+PlainView+to+debug+ConfiForms+expressions+Velocity+templates+and+more
This should help you to understand what is wrong
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.