package

com.atlassian.jira.workflow.validator

JIRA Workflow Validators

Validators check the user's input on a transition for validity (different from Conditions, which prevent actions from displaying altogether). For a more detailed description, see the JIRA documentation.

Validators have one method to implement, validate(). validate(java.util.Map, java.util.Map, com.opensymphony.module.propertyset.PropertySet).

The contents of 'transientVars' varies depending on which workflow action triggered the transition. Most variables are set by the OSWorkflow engine, and documented here. When creating an issue (CreateIssueDetails), the following additional variables are set:

issue
the Issue Issue currently being transitioned
pkey
issue's project key - useful for making a validation somehow project-specific (eg. project-specific group membership)

Classes

AbstractPermissionValidator  
NotNullPermissionValidator  
PermissionValidator An OSWorkflow validator that validates a given permission is correct. 
UserPermissionValidator This class is deprecated. since 3.5.2 use PermissionValidator instead. Note this cannot be removed without an upgrade task for existing users.