Versions Compared

Key

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

Description

...

  1. Enter the following details in the VALIDATOR FIELDS > Configuration tab:

    • Expression: Enter a Jira expression, which when satisfied, allows the workflow transition to proceed to the next status.
      Here are a few examples: 
      • Allow only 5 subtasks to be created on a workflow transition:

        Code Block
        !!issue.parent && issue.parent.subtasks.length < 6


      • Allow users to add a fix version only when the status is Fixed:

        Code Block
        issue.resolution.name !="Fixed"|| issue.fixVersions && issue.fixVersions.length >0


    • Evaluate: Click this button to validate your Jira expression. If the syntax is incorrect, you are prompted with an error message that directs you to what possibly went wrong.
      Image Modified
    • Error message: Enter the message that you want users to see to help them if the transition fails.
    • Notes (optional): Enter useful information about the the validator.

...

Once you add a validator to the intended transition, you can view the details in the Validators tab as follows (for an example input):

Insert excerpt
Tips - Cloud
Tips - Cloud
nopaneltrue

Helpful link(s)

Introducing Jira expressions

...