Introduction to Groovy
Groovy is an object-oriented programming language for the Java platform. It is a dynamic language with features similar to those of Python, Ruby, Perl, and Smalltalk. It can be used as a scripting language for the Java Platform. To know more about Groovy, see the Groovy Documentation.
Groovy in JMWE
Groovy script results in JMWE are used to:
- Set a field value by the Set field value to a constant or Groovy expression and Set field value of linked issues post-functions.
- Create the body of the comment by the Comment issue and Comment linked issues post-function
- Execute a post-function conditionally in all post-functions that have Conditional execution
- Execute a condition in the Scripted (Groovy) condition
- Execute a validator in the Scripted (Groovy) validator
On this page:
Building Groovy scripts
To learn how to write Groovy scripts, you need to know the basics of Groovy and how to use it in JMWE. You can either learn from the references or tutorials.
References:
Groovy
- Groovy in action
Groovy in JMWE
- Variables used in a groovy expression and their interfaces.
- Accessing the fields of an issue
- Expected value for each field type
- Groovy editor, where you should be writing your Groovy scripts
- Groovy script tester, which lets you test the written script against any issue