Adding a validator to transitions

Like conditions, transitions, by default, do not have any validators associated. This means that transitions are completed as soon as they are executed. You can add validators to transitions to make sure that executions are only allowed to be complete when certain criteria are met. Use the following steps to add a validator to a transition:

  1. Select the transition you want to add conditions to.
  2. Click on the Validators link.
  3. Click on the Add validator link. This will bring you to the Add Validator To Transition page, which lists all the available validators you can add:
  1. Select the validator you want to add.
  2. Click on the Add button to add the validator.
  1. Depending on the validator, you may be presented with the Add Parameters To Validator page where you can specify configuration options for the validator. The following screenshot shows an example from the Fields required validator:

Similar to conditions, when there are multiple validators added to a transition, they form a validator group. Unlike conditions, you can only use the logical AND condition for the group. This means that in order to complete a transition, every validator added to the transition must pass its validation criteria. Transitions cannot selectively pass validations using the logical OR condition.

The following screenshot shows a validator (the Fields required validator from Suite Utilities for Jira; refer to the Extending a workflow with workflow add-ons section) being placed on the transition, which validates whether the user has entered a value for the Resolution Details field:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset