Section | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Groovy in JMWE
Groovy in JMWE can be used either to write a Groovy expression or a Groovy template in the workflow extension configuration.
Groovy script expression results in JMWE are used toin:
- Execute a post-function conditionally in all All post-functions that have with the Conditional executionExecute a Groovy script against an issue in the section to execute a post-function conditionally
- Scripted (Groovy) operation on issue to execute a Groovy script against an issue
- Execute a condition in the Scripted (Groovy) condition to execute a conditionExecute a validator in the
- Scripted (Groovy) validator to execute a validator
- Create Comment issue and Comment linked issues post-functions to create the body of the comment in by selecting Groovy expression as the Comment issue and Comment linked issues type
- Create/Clone issuepost-function to
- Calculate a
- project
- Calculate a parent issue key
- Set fields of new issue
- by selecting Groovy expression as the Value type and
- Add a comment to the current
- issue by selecting Groovy expression as the Comment type
- Set field value to a constant or Groovy expression and and Set field value of linked issues post post-functions .to set a field value by selecting Groovy expression as the Value type
- Email issue post-function to
- Write the Subject, HTML body, Text body
- Write JQL search expression with Groovy template markup in the Link issues to the current issue post-function
- Unlink issues from the current issue based on a Groovy condition in the Unlink issues from the current issue post-function
- Test/run Groovy scripts in the admin screen
- Set the recipients from the script
- Unlink issues from the current issue post-function to unlink issues based on the result of a Groovy condition
- Admin screen to test/run Groovy scripts
Groovy templates in JMWE are used in:
- Comment issue and Comment linked issues post-function to create the body of the comment by selecting Groovy template as the Comment 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 the Comment type
- Set field value to a constant or Groovy expression and Set field value of linked issues post-functions to set a field value in the by selecting Groovy template as the Value 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
Building Groovy script
You can start writing groovy scripts by going through the below references:
...