Parent Status Validator

A workflow validator which ensures that the current issue's parent is in one of the selected statuses. This is useful only for sub-tasks.

To add 'Parent 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 Parent Status Validator from the list of validators.
  6. Click on Add to add the validator on the transition.
  7. Select the status(es) of the parent issue from the Status of parent issue field.
  8. Add a customized error message in Error message to display if the validation fails
  9. 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 required options and trigger the transition, the add-on checks the status of the issue's parent. If the parent issue is not in one of the selected statuses then an error message is displayed.

The list of statuses that is displayed under the Status of parent issue has all the statuses across different workflows. This is because the workflow of a parent and child can be different.

Validator Scope

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