Section | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Learning Groovy
To learn more about the Groovy language:
- Start with our Groovy tutorial: Groovy tutorial
- Introduction to Groovy: See Learn Groovy in Y minutes and Learn Groovy in one Video
- Tutorials - many tutorials are available online, such as TutorialsPoint, Groovy with SmartThings and The Groovy 2 Tutorial
- References - See The Apache Groovy programming language and The Complete Apache Groovy Developer Course
Groovy in JMCF
Groovy can be used in JMCF to write a Groovy script in the Groovy Formula section of the custom field configuration of a:
- Calculated Date/Time Field, such as Groovy expression returning a Date/Timestamp
- , to return the result of the evaluation of a script, such as the addition of two other fields.
- Calculated Number Field, to return the result of the evaluation of a script, such as the addition of two other fields.
- Calculated Text Field, to return the result of the evaluation of a script, such as the concatenation of two other fields.
- Calculated Duration Field, such as a Groovy expression returning a string representing a duration or a number in Long format representing the number of seconds
- Calculated Multi-select Field, such as a Groovy expression returning a string representing the value of an option.
- Calculated Single-select Field, such as a Groovy expression returning a string representing the value of an option.
Groovy can also be used to format the value of a Calculated Number Field.
Writing Groovy scripts in JMCF
To learn how to write groovy scripts for JMCF, see:
...