Writing a workflow validator
Workflow validators are specific validators that check whether some predefined constraints are satisfied or not while progressing on a workflow. The constraints are configured in the workflow and the user will get an error if some of them are not satisfied. A typical example would be to check if a particular field is present or not before the issue is moved to a different status.
Workflow validators are created with the help of the workflow-validator module. The following are the key attributes and elements supported:
Attributes:
| 
 Name  | 
 Description  | 
| 
 
  | 
 This should be unique within the plugin.  | 
| 
 
  | 
 Class to provide contexts for rendered velocity templates. It must implement the   | 
| 
 
  | 
 The localization key for the human-readable name of the plugin module.  | 
| 
 
  | 
 Human-readable name of the workflow validator.  | 
Elements:
| 
 Name  | 
 Description  | 
| 
 
  | 
 Description of the workflow...  |