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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

396 views 17 9
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