2 Issues: single and double quotes issue/error when creating JIRA ticket with Confiforms

Mei N
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 4, 2024

Hi there,

I am running into 2 issues with single and double quotes in user input fields.

Scenario 1

When user inputs double quote in a text or textarea field, it populates the cannot prepare JSON error and anywhere where there is a double quote it formats as " as shown below:
error2.png

(Ticket creation otherwise works if there's no double quotes presented)

Scenario 2
When user inputs a single quote in text/textarea field, when a JIRA ticket gets created it populates with "'"

Form and JIRA ticket output

singlequotetest.pngjira1.png

 

This is how the JSON looks like, which is wrapped in the No Format Macro inside of the Confiforms IFTTT Integration Rules macro. I made sure to utilize the escapeJSON virtual function based on the info I found on the community forum.

jiramacro.png

This is also how all my text fields are set up, nothing else is selected.

fieldmacro.png

 


I found something similar in regards to my double quotes issue:

https://community.atlassian.com/t5/Confluence-questions/Double-Quotes-Not-Escaped-Creating-Jira-Issue-with-Confiform/qaq-p/2723170

Though I didn't try the solution provided because from my understanding the escapeJSON virtual function should work and I want it to populate with the double quotes. 

Any ideas why these 2 things are happening? Am I missing something?
Please let me know and TIA!



1 answer

0 votes
Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 5, 2024

Hi @Mei N 

I am testing your issues, but there is no problem with either double or single quotes

They are transferred correctly to Jira (when properly escaped on a JSON mapping side with an escapeJSON function (similarly to what you do))

Please open a support case with us at https://wiki.vertuna.com/display/VERTUNA/Support+Request+Form so we can troubleshoot it further with you

Alex

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events