Our new Appfire Documentation Space is now live!
Take a look here! If you have any questions please email support@appfire.com
JMWE add-on specific tutorials
Welcome to the JMWE add-on specific tutorials which are practical guides using Groovy scripting for creating advanced workflows. This collection of tutorials show you how to accomplish certain functional use cases with Groovy scripts in the workflow extensions of JMWE.
You will need a fresh test Jira Server instance, which you will restore from a backup in the next step.
On this page:
Pre-requisites
Before starting this tutorial you should have basic knowledge of
Objective
By the end of this tutorial:
- You will have a local Jira Server test instance with workflow extensions having Groovy scripts. Note that the end product is not a complete functional workflow.
- You will have a good understanding of how to use Groovy in the JMWE add-on.
About the tutorial
This tutorial guides you through the following chapters:
- Preparing your test environment — This page guides you through setting up a test Jira Server environment that you will be using throughout the rest of this tutorial.
- Writing your first Groovy script — This tutorial will guide you through writing your first Groovy script.
- Tutorial on safe access to a field — When you access the field of an issue, you might need to verify that it is not null before calling a method on the value of the field. This tutorial will guide you through writing Groovy scripts that access the fields of an issue avoiding exceptions due to a null value.
- Tutorial on looping over collections — This tutorial will guide you through writing Groovy scripts that loop over collections.
- Tutorial on using Closures — This tutorial will guide you through writing Groovy scripts using Closures.
- Tutorial on performing an action based on the value of a field — This tutorial will guide you through writing Groovy scripts that access a field of an issue, compare it with another value, and perform an action based on the outcome.