Versions Compared

Key

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

Until 5.0.0 JMWE add-on could set a field or comment an issue using either a Raw Value or the result of a Groovy expression. Starting from 5.0.0, JMWE provides an option to include Groovy templates too. Using this you can template you can output both text and Groovy expression results togetherGroovy templates is a templating engine for JavaScript. It lets you insert dynamic content in any text through the use of templates. A template contains variables and/or expressions, which get replaced with values when a template is rendered. This is very similar to JSP markup. 

To write a simple Groovy code:

Code Block
<%= some Groovy code %>

To just execute a simple Groovy code:

...

Groovy templates in JMWE are used in:

Groovy templating features


To output the result of a simple Groovy code:

Code Block
<%= some Groovy code %>

To execute a simple Groovy code:

Code Block
<% some Groovy code %>


Groovy template examples:

...