Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This validator can be used to perform a validation with a Jira expression. Based on the result of the expression, the user is either allowed or blocked to transition to the destination status.

...

Expand
titleClick here for the steps to configure
  • Add the Build-your-own (scripted) validator to the Apply leave transition.

    • Write the following script in Jira expression field

      Code Block
      !! issue.dueDate && issue.dueDate.plusMonths(3) > new Date().toCalendarDate()
    • Configure the error message: Cannot apply for a leave

(lightbulb) Force users to select both the parent and child values for a cascading select field

Expand
titleClick here for the steps to configure
  • Add the Build-your-own (scripted) validator to the transition.

    • Write the following script in Jira expression field

      Code Block
      !!issue.customfield_10400 && !!issue.customfield_10400.value && !!issue.customfield_10400.child.value
    • Note customfield_xxxxx is the id of the Cascading select field

    • Configure the error message: Input values for both the child and parent of the cascading field

Field required Validator

This validator can be used to conditionally perform a validation to ensure that the specified field has a value during a transition.

...