Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Validators check that any input available to the transition (such as user-supplied input) is valid before the transition is performed. If a transition's validator 'fails', the transition's post functions will not be executed and the issue will not progress to the destination step of the transition.

You can use JJupin and SIL to define a large set of validators beside the default validators offered by Jira, by just adding a (k) SIL Validator to a transition and publishing the workflow.

Below are just a few common examples:

Table of Contents

Info
titleRequired plugins

You will need the following JIRA plugin:

  1. JJUPIN

Level: BASIC

Comment Required

A validator that forces users to enter a comment during a transition, otherwise displaying a customized error message:

Code Block
titleSIL Code
string errorMsg = "You must enter a comment!";
if(!hasInput("comment")) {
   return false, "comment", errorMsg;
}