Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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.

To add 'Field is required Validator' to a transition:

  1. Click Edit for the workflow that has the transition you wish to configure the validator on.

  2. In the Workflow Designer, select the transition.

  3. Click on Validators in the properties panel.

  4. Click on Add validator.

  5. Select Field is required Validator from the list of validators.

  6. Select the field name in the Field drop-down.

  7. Input a message in the Error message field to customize the error message.

  8. Click on Add to add the validator to the transition.

Note

On the Service Management portal view of a request, the customer will not see the Error message when the validator fails. This is due to a known limitation (JSDCLOUD-5853) with Atlassian.

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.

Note that this validator does not work for the following fields: 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 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:

  1. Add the “Field Required Validator” to the “Send for Approval” transition

  2. Select the “Approvers” field

  3. Save the validator

  4. Publish the workflow