Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

What is the correct JSON code to pass a smart multi select field to Components?

Hi Team,


I have a multi-select field in my Confiform that passes to the Component field in Jira. Normally I would code this as "components" : [ [entry.FieldName.asArrayOfKVPairs(name)] ].

The field is a Smart Dropdown. Normally I would pass a smart drop down value with this code: "components" : [ {"name": "[entry.FieldName.ColumnName]" } ].

But, as this is a multi-select Smart Dropdown, I need both qualifiers: .asArrayOfKVPairs(name) and .ColumnName

How can I combine both qualifiers so it passes all selected choices and passes the correct piece of the smart dropdown value?



1 answer

1 accepted


With smart fields you have a "bridge" to another form, and for multi-select smart fields the list of IDs referencing the other records is stored (to form a "bridge" to other form's data)

So, you will need a transformation to get the value from the referenced form

"components" : [ [entry.FieldName.transform(ColumnName).asArrayOfKVPairs(name)] ]

So, what is exactly happens... You ask ConfiForms to get the value from field FieldName, then ask it to see if there is a ColumnName field/property in what it returns on the 1st step and put those values into the list and then reformat with asArrayOfKeyPairs (each value found in the list)


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

370 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you