Hi guys,
I have an IFTTT macro to "Create Jira Issue" and the JSON is wrapped in a NOFORMAT macro. I have custom Jira fields of type "Text Field (multi-line)". In my form, when a user submits an entry using double quotes " then the form throws an error. Problem is that I cannot seem to be able to escape this character. I have tried the following:
[entry.IHRisk1.escapeJSON]
IHRisk1 is a field of type "TextArea" in Confiform.
If I pass double quotes into the system field summary or description, I have no issues, but that is not what I want in terms of behaviour of the form.
Surely Confiform should be able to escape characters sent to custom fields in Jira.
Regards.
Stuart.
p.s. I did look at the following link from Alex but this did not work
Hi guys I have solved this, not sure why I did not think of this before !!!!! Solved using virtual function replaceWith. So:
[entry.IHRisk1.replaceWith(",').escapeJSON]
Why this is necessary? Could you share WHERE the quotes are not properly scaped with this "escapeJSON" function?
Are you talking about Velocity templating and setting the local field from a ConfiForms field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Where does NOT ConfiForms escape the double quotes for you correctly?
Using the following construction does not work for you?
[entry.IHRisk1.escapeJSON]
May I see a complete configuration for the JSON mapping that does not work for you?
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.