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:
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.
|