Are you using JMWE for Jira Server and Data Center and want to learn how to use this validator? Head to our documentation here.
A workflow validator which ensures that the specified field has a value during a transition.
If the specified field is empty, an error message is displayed and the user is forced to input a value. You can customize the error message to be displayed when the validation fails.
To add 'Field is required Validator' to a transition:
Editfor the workflow that has the transition you wish to configure the validator on.
Workflow Designer, select the transition.
Validatorsin the properties panel.
Field is required Validatorfrom the list of validators.
Select the field name in the
Input a message in the
Error messagefield to customize the error message.
Addto add the validator to the transition.
On the Service Management portal view of a request, the customer will not see the
When you add this validator to a transition and trigger the transition, the add-on checks for a value in the selected field. If no value is found, then an error message (configured/default) is displayed.
Check this option if you want validation to occur only in certain cases, such as if the issue is of a certain issue type, has certain field values, or more generally satisfies an arbitrary Jira expression.
A typical use of this workflow validator is to validate that the field of the issue has a value during the transition. Consider a use case where you want to check that the “Approvers” field is not empty when sending the ticket for approvals. To configure this:
Add the “Field Required Validator” to the “Send for Approval” transition
Select the “Approvers” field
Save the validator
Publish the workflow