Section | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Learning Groovy
To learn more about the Groovy language:
- Introduction to Groovy: See Learn Groovy in Y minutes and Learn Groovy in one Video
- Tutorials - To learn in depth about Groovy you can refer these: Groovy with SmartThings and The Groovy 2 Tutorial
- References - See The Apache Groovy programming language and The Complete Apache Groovy Developer Course
Groovy in JMWE
Groovy in JMWE can be used either to write a Groovy expression or a Groovy template in the workflow extension configuration.
...
- Comment issue and Comment linked issues post-function to create the body of the comment by selecting
Groovy template
as theComment type
- Create/Clone issue post-function to:
- Set fields of new issue by selecting Groovy template as the Value type and
- Add a comment to the current issue by selecting
Groovy template
as theComment type
- Set field value and Set field value of linked issues post-functions to set a field value by selecting
Groovy template
as theValue type
- Email issue post-function to write the
Subject, HTML body and Text body
- Link issues to the current issue post-function to write
JQL search expression
Writing Groovy script
You can learn writing groovy scripts by going through the below references:
...
To learn how to write groovy scripts for JMWE, see:
- Groovy editor - This document explains you the Groovy editor in JMWE where you can write your Groovy script or Groovy template.
- Variables used in a groovy expression - This document explains you the variables available for your Groovy scripts and how to create new variables in your Groovy scripts.
- API Interfaces - The document details the API interfaces
- Accessing the fields of an issue - This document explains you on how to access the fields of an issue.
- Expected value for each field type when the value type is a Groovy expression - This document lists the expected values for each field type of your issue.
- Groovy templates - This document explains you on how to write Groovy templates in the Groovy editor
Groovy script tester - This document explains the Groovy script tester which helps you test your written script or template and debug it.
...