Versions Compared

Key

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

Name

Bean Shell Macro

Plugin

Java Scripting Plugin


Table of Contents
maxlevel3
minlevel2
typeflat
separatorpipe

Description

Excerpt

Java scripting using BeanShell

  • This is a newer implementation and replacement for the script macro
  • The script macro is retained for upward compatibility with existing source - it is exactly the same as beanshell
    • The beanshell implementation level has been updated with this release of the macro

Documentation

  • Help available in the notation guide.

Common parameters

Parameters

Pre-defined variables

Additional parameters

  • showJava - Default is false. Set to true to show a panel with the java source. Requires output=wiki.
  • strictJava - Default is false. Set to true to restrict what is considered valid source. This mode attempts to make BeanShell syntax behave as Java syntax, eliminating conveniences like loose variables, etc. When enabled, variables are required to be declared or initialized before use and method arguments are reqired to have types. This mode will become more strict in a future release when classes are interpreted and there is an alternative to scripting objects as method closures.See Pre-defined variables

Usage

No Format

{beanshell}
out.println("Hello world");
{beanshell}


No Format

{beanshell:output=wiki|script=#userByGroup.bsh|group=confluence-users}
{beanshell}


No Format

{beanshell:output=wiki|script=^userByGroup.bsh|showjavashowCode=true}
{beanshell}


No Format

{script:output=html|script=^myjava.java}
{script}

Other examples

Security

This macro supports Macro Security Plugin.

Open Issues with this component

Jira Issues
columnstype,key,summary,reporter,assignee,priority,status
http://developer.atlassian.com/jira/secure/IssueNavigator.jspa?viewrss&&pid=10013&summary=true&description=true&body=true&status=1&status=3&status=4&component=10022&sorter/field=issuekey&sorter/order=ASC&tempMax=25&reset=true&decorator=none
urlhttp://developer.atlassian.com/jira/secure/IssueNavigator.jspa?view=rss&&pid=10013&summary=true&description=true&body=true&status=1&status=3&status=4&component=10022&sorter/field=issuekey&sorter/order=ASC&tempMax=25&reset=true&decorator=none

...

CMSP