Info |
---|
Are you using JMWE for Jira Server and Data Center and want to learn how to use this validator? Head to our documentation here. |
Excerpt |
---|
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.When you add this validator to a transition and that transition is triggered, the add-on checks for a value in the selected field. If no value is found, then an error message (either a configured message or a default) is displayed.
To add 'Field is required Required Validator' to a transition:
Click
Edit
for the workflow that has the transition you wish to configure the validator on.In the
Workflow Designer
, select the transition.Click on
Validators
in the properties panel.Click on
Add
validator
.Select Field is required In Jira Administration, go to Workflows and click the Edit link to open the workflow.
Select the required transition.
Select the Validators tab and click Add validator.
Select Field Required Validator from the list of validators.
Select the field name(s) in the Field(s) drop-down.
Input Add a message in the Error message field to customize the error messagethat is displayed to the user.
Click on Click Add to add the validator to the transition.
Note |
---|
On the Service Management portal view of a request, the customer will not see the |
Info |
---|
Related links : |
Note that this validator does not work for the following fields: Affect Versions, Components, Description, Environment, Fix Versions, Labels, Security Level, Watchers, Epic Color, Epic Name, Epic Status, Raised during.
Also, some custom fields from other apps, like Team of Jira Portfolio, though available in the list are not supported because of certain limitations (of the apps).
Validator Scope
Check this the Ignore Scope 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.
Use case
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 and configure an error message, if necessary.
Save the validator.
Publish the workflow.