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
You can learn writing groovy scripts either by going through the list of references (in the order given) or have a look at our tutorials listed below:
References
- Basics of Groovy: This document explains
- Basics of Groovy
- References for learning Groovy
- Variables that can be used in your Groovy expression
- Interfaces of your variables and their references. Reference to here
- How do you access the fields of an issue
- What are the expected values for each field type of your issue
- Groovy editor, where you should be writing your Groovy scripts
- Groovy script tester, which lets you test the written script against any issue
Tutorials
- Return a boolean value
- Return a user object