Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confiform passing "Labels" entries to JIRA

Andre T.
Contributor
January 29, 2020

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?

2 answers

2 votes
Manuel_vA
Contributor
May 25, 2020

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':

confiforms_label1_field_definition.PNG

 

That's what my whole IFTTT-block looks like:

confiforms_create_issue_ifttt_json.PNG

(ConfiForms Version: 2.12.4 )

 

Hope that helps!

1 vote
Alex Medved _ConfiForms_
Community Champion
May 25, 2020

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

GAVIN Benn
Contributor
June 29, 2025

Hi Alex, what issue can you see with this?

Ta

"labels": ["default-label-1","[entry.myfield.asArrayMultiSelect.escapeJSON]"],

Alex Medved _ConfiForms_
Community Champion
June 30, 2025

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

Suggest an answer

Log in or Sign up to answer