Versions Compared

Key

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

...

Executes a template. All variables already defined in the script are passed to that template. All variables already defined in the script are passed to that template. This routine function obeys the context it is called. If you call it in an issue context, you can access issue fields in the template, if not you cannot.

...

The template is represented below:

Code Block
languagejs
$! if(isNotNull(baseVar)) { $
Well done, <strong>aseVar$ !
$! } else { $
Nobody to congratulate ?!? Whoaaaa !!!
$! } $

The script is represented below:

Code Block
languagejs
string baseVar = "Monster";
return executeTemplate("templates/some.tpl"); //note that we refer this relative to Kepler Home directory !

The output produced is following:

Code Block
languagejs
Well done, Monster!

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "string_routinefunction" and space = currentSpace ( )
labelsarray_routinesfunctions