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 |
Get JIRA Development Cookbook - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.