Hey,
I'm trying to get Confluence to post a message to our messaging platform; which I'm able to do as flat text. However, I'd prefer to leverage it as JSON, so I can manipulate the text better and have it better formatted on the user side.
The automation itself works, and it's not a bother, but I've got difficulty with using the AI Summary of the page I've published then contains extra ""s - so the JSON is unable to be interpreted on the other side, resulting in errors. So it's doing things like:
Summary: The Release Notes for this week include the introduction of a Validation Rule, "Insert Rule Name" which prevents XYZ from happening.
Which means that it breaks the validity of the JSON. Has anyone got any smart way to replace "" with something else, like single quotes, or insert an escape so it is able to be exported correctly?
Hi @Ben Sykes -- Welcome to the Atlassian Community!
Without seeing the specifics of your rule and audit log...
You could try adding the jsonEncode function to the field so it properly escapes characters when necessary: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#Json-encoding
Kind regards,
Bill
@Bill Sheboy thank you so much! I really appreciate it, that worked like a charm!
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.