I'm trying to send a web request containing fields like {{issue.summary}} but when the customer types a double quote, the request fails with "invalid json".
It appears that the quote is inserted (without escaping) into the json of the web request. Is there any way to safely use issue.summary in a web request?
.asJsonString fails in the same way but that was a good hint - .jsonEncode works perfectly for my use case. Thanks!
Hi @Alex Shroyer ,
welcome to the Atlassian Community.
Please see here and try:
asJsonString
{{issue.summary.asJsonString}}
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.