I am new in Jira and I am creating a post-function that will create a Confluence Page.
I want to write the storage format using an XML builder and I have the following code.
<span><br>// write storage format using an XML builder<br>def writer = new StringWriter()<br>def xml = new MarkupBuilder(writer)<br><br>xml.'ac:structured-macro'('ac:name': "section") {
'ac:parameter'('ac:name': "border","true")
'ac:parameter'('ac:name': "width","100")
xml.p("This is a Section")
xml.'ac:structured-macro'('ac:name': "column") {
'ac:parameter'('ac:name': "border","true")
xml.p("This is a Column")
}
}<br><br>// print the storage that will be the content of the page<br>log.debug(writer.toString())</span>My goal is to create a section with a column using a structured macro but it is not working as expected as it only creates the Section part.