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 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 Issue(s) 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.
- Shared Validator — An extension that runs a shared validator, created on the Shared extensions page, against the current issue (or issues related to the current issue) verifying that specific criteria are met before an issue can transition to a new stage.
- 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.
- Build-your-own Validator — A workflow validator that is based on the result of either a custom expression or a scripted Groovy expression. If the expression returns false (or falsey), a validation error message will be displayed.