Validators are used to validate the input made on the transition screen after the transition is triggered.
Jira Misc Workflow Extensions makes the following Validators available to Jira administrators:
- Comment Required Validator — A workflow validator that forces users to enter a comment during a transition. If the user does not enter a comment, a custom error message will be displayed.
- Field has been modified Validator — A workflow validator that ensures that a certain field was modified during a transition.
- Field has single value Validator — A workflow validator which ensures that a multi-valued field does not contain more than one value during a transition.
- Field is required Validator — A workflow validator which ensures that the specified fields have a value during a transition.
- Parent Status Validator — A workflow validator which ensures that the current issue's parent is in one of the selected statuses. This is useful only for sub-tasks.
- Related Issues Validator — A workflow validator which ensures that a link to one (or more) issue(s) from the current issue is being created during the transition, and/or that existing and/or newly related issues (such as linked issues, Stories of an Epic, Epic of a Story, subtasks of an issue, issues returned by a Groovy script or a JQL search, etc.) have certain characteristics.
- Related Issues Status Validator — A workflow validator which ensures that the current issue's related issues (such as linked issues, Stories of an Epic, Epic of a Story, subtasks of an issue, issues returned by a Groovy script or a JQL search, etc.) are in one of the specified statuses.
- Previous Status Validator — A workflow validator that makes sure the issue has been in a specified Status before.
- Scripted (Groovy) Validator — A workflow validator that is based on the result of a Groovy expression. If the Groovy expression returns false, a validation error message will be displayed.
- User Validator — A workflow validator that can validate that either the current user or users in a specific field meet certain criteria, such as being the reporter or assignee, belonging to certain groups or project roles, satisfying a Groovy condition, etc.