O'Reilly logo

JIRA 5.x Development Cookbook by Jobin Kuruvilla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 supported in this module:

Name

Description

key

This should be unique within the plugin.

class

The class to provide contexts for rendered Velocity templates. It must must implement the com.atlassian.jira.plugin.workflow.WorkflowPluginValidatorFactory ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required