Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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?

 

Thanks.

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Jun 03, 2022

Hi

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)

Alex

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events