This tutorial considers a scenario where the message configured using Conditioned Validator is not displayed as-is on a Jira service request form. The steps explained in the succeeding section help you understand the behavior of a conditioned validator when used to validate a service request form (since 4.5).
Navigate to the intended project workflow.
Edit the workflow.
Click the Open step.
Click Create in the Open step to navigate to the respective transition.
Select the Validators tab and click Add validator.
Select Conditioned Validator (Bob Swift) and click Add.
Enter the following in the Conditions & Configurations tab to validate the length of the the Summary field in the service request form is more than 15 characters:
Condition 1: %Original_summary%
Regular expression pattern: .length > 15
Enter the following in the Messaging tab and click Add: Message: The length of your Summary must be more than 15 characters. Please explain in detail.
Publish the workflow.
When a user raises a request and fills in the request form details that fail to meet the conditions set in the conditioned validator, the following error message is displayed:
Note the configured message is not displayed as is but nonetheless is appended to the Jira error. This is the behavior of a conditional validator configured for a Jira service request form (since 4.5).