We're using a Behavior to pre-populate some text of type "Notation" in the Description field, based on this document: https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=miscellaneous
We like the rendering, other than the fact of no white space between, so I've been trying to figure out how add a new line/blank line between each item.
I've tried the following to no avail:
- Leaving an empty line between
- \n
- \\
- \\\\
- <br />

def desc = getFieldById("description")
def defaultValue = """
(i) *Summary*
(?) *Steps to Reproduce*
(-) *Actual result*
(+) *Expected result*
(-) *Which action blocks:*
(*) *Affected customer*
(*) *Test data*
(*) *Environments where reproduced (DEV, QAE, CAE, PROD)*
""".replaceAll(/ /, '')
if (!underlyingIssue?.description) { // <1>
desc.setFormValue(defaultValue)
}
We're using ScriptRunner 8.1.0 on Jira DC 9.4.5.
Thanks in advance for any suggestion you can think of!