Confiforms - Using Smart Dropdown to pass choice to JIRA but getting ID instead of option choice

Hi,

I'm using Confiforms to create an intake form in Confluence to create JIRA issues. One of the fields is a Smart Dropdown field referencing a Confiform Table on another page (sub-page of the main page). 

The dropdown correctly shows the options and allows you to select the product. The Stored Data of the form correctly records the product selected, but when it is passed to JIRA in the JSON code it passes the Confiform generated Row ID 8693080a-bec3-4c8c-9708-337f50b24ede

Is there a Virtual Function or other code I need to put on the end of the variable when passing it through JSON? Currently this is the code:  [entry.ImpactedProducts.escapeJSON]

Thanks. 

2 answers

0 vote
Davin Studer Community Champion Nov 09, 2017

It should look like this...

[entry.ImpactedProducts.{fieldnamefromsmartform}.escapeJSON]

So using the below screen shot as an example if the field in the smart form you were connecting to was called thing your entry text would look like this...

[entry.ImpactedProducts.thing.escapeJSON]

Capture.PNG

You will need to have the actual codes your JIRA expects stored in the form which your ImpactedProducts field references.

This way you will need to change the reference to your smart field to actually take that other field from a target form

[entry.ImpactedProducts.<HERE_GOES_THE_FIELD_NAME_OF_THE_FIELD_IN_REFERENCED_FORM_WHICH_HOLDS_THE_ID_YOUR_JIRA_UNDERSTANDS>]

Having your [entry.ImpactedProducts] get's you actually the internal ID (UUID) of the record referenced (from that other form your smart field takes the values from)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

273 views 11 10
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you