Package com.atlassian.jira.workflow.validator

JIRA Workflow Validators


Class Summary
PermissionValidator An OSWorkflow validator that validates a given permission is correct.
UserPermissionValidator Deprecated. since 3.5.2 use PermissionValidator instead.

Package com.atlassian.jira.workflow.validator Description

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:

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

Copyright © 2002-2012 Atlassian. All Rights Reserved.