Hello,
We are using Confiforms IFTTT rules on a confluence page to make Jira tickets.
We collect up field info like this:
#set($strAddInfo = "[entry.fnField.escapeJSON]"
And then build up the json structure to place values in the "description" field of the ticket.
However, when we use some special characters such as quotes ("), we encounter errors on submission, and some characters such as < and > and & become HTML encoded like >. We worked around the quote issue with the subpar but passable solution of adding string replacement with replaceWith(",'') after the escapeJSON directive. However, we are at an impasse with special characters, and have tried various combinations of the confiforms virtual functions - https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions - especially the urldecode and the renderAs* functions.
Is there any further documentation or advice around character escaping?
Consider using the
[entry.fnField.escapeJSON]
inside the description mapping directly and not through the Velocity variable
Or, alternatively, rename your variable to include Html in a name, so Confluence will not escape the value when processing
#set($strAddInfoHtml = "[entry.fnField.escapeJSON]")
Something what has been changed in Confluence since version 8 when a variable value is accessed from a velocity context it gets escaped.
To avoid that you can use the Html in the variable name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.