JMCF add-on specific tutorials
Welcome to the JMCF add-on specific tutorials which are practical guides using Groovy scripting for creating calculated fields in the JMCF add-on. This collection of tutorials show you how to accomplish certain functional use cases with Groovy scripts using the custom fields of JMCF.
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 calculated fields having Groovy scripts.
- You will have a good understanding of how to use Groovy in the JMCF 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 a calculation based on the value of field(s) — 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.