Previous Status Validator

A workflow validator that makes sure the issue has been in a specified Status before.The user will be able to progress to the destination status of a transition, on which the validator is configured, only when the issue has previously been in the selected status. You can customize the previous status to be considered using the options provided as a part of the validator.

This validator is similar to the Previous Status Condition.

To add 'Previous Status 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 Previous Status Validator from the list of validators.
  6. Click on Add to add the validator on the transition.
  7. Select the previous status from the Previous Status field.
  8. Add a customized error message in Error message to display if the validation fails
  9. Select the option Most recent status only, to check the most recent status only.
  10. Click on Add to add the validator to the transition.

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 (JSDSERVER-5822) with Atlassian.

Related links :

Refer to the Use cases for validators page for use cases for this validator.

When you add this validator to a transition with the required options and trigger the transition, the add-on checks the history of the Status field. If the issue has previously been in the selected status, then the issue will progress to the destination status of the transition. If not a validation failure message will be displayed. 

Customize this validator using the additional option provided  as a part of the validator. The options is :

Option 

  • Most recent status only

Checks only for the most recent status of the issue, excluding the current status. The issue will progress to the destination status of the transition only when the issue's selected status is the most recent status, excluding the current status.

Validator Scope

To execute this validator based on the result of a groovy expression see Conditional execution using Groovy expression