Forums

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

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

Erin Smith
Contributor
November 6, 2017

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 votes
Alex Medved _ConfiForms_
Community Champion
December 4, 2017

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)

0 votes
Davin Studer
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.
November 9, 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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events