Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxlevel3
minlevel2
typeflat
separatorpipe

Name

Groovy Macro

Plugin

Script Plugin

Table of Contents
maxlevel3
minlevel2
typeflat
separatorpipe

Description

Excerpt

Java scripting using Groovy

Documentation

  • Help available in the notation guide.

...

  • See Script Plugin for common variables
  • html - MarkupBuilder for easily building html output

Usage

No Format

{groovy}
println("Hello world");
{groovy}
No Format

{groovy:output=wiki|script=#example.py|var1=test}
{groovy} 
No Format

{groovy:var1=hello|var2=world}
print "Output parameter"
print var1 + var2
out.println(var1 + var2)
{groovy}

Using the html markup builder

No Format

{groovy}
def list = [['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h', 'i']]
html.table(class: 'confluenceTable') {
  tbody {
    list.each { row ->
      tr {
        row.each { column ->
            td(class: 'confluenceTd', column)
        }
      }
    }
  }
}
{groovy}

...

This macro supports Macro Security Plugin.

Open Issues with this component

...