I have an automation that makes a web request and write the response as a comment. In case of errors, the response body is JSON and I'd like to pretty-print it. I first tried surrounding in triple quotes, but it's just one long line.
Hi @Zak Jacobson -- Welcome to the Atlassian Community!
Does your response already have line breaks? If so, you could try using the code snippet / markup for text fields:
{code:json}
your JSON expression here
{code}
https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=advanced
Kind regards,
Bill
Thanks Bill! I don't think there are line breaks... but I can change that!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.