Versions Compared

Key

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

This article explains how to use Run CLI for Jira 's action in a workflow validator.

Instructions

  1. Log in to into the Jira instance as an Administrator.
  2. Edit the workflow where Run CLI is to be added as a validator.
  3. Select the transition on to which the CLI validator needs to be added and then click the link Validators.
  4. Click Add validator and select CLI action from the list of validation options.
    Image Removed
    Image Added
  5. Add the CLI action as per the requirement and save the settings. As an example, we considered adding add a comment to an issue using the Run CLI action if the custom field was set to A.
    Image RemovedImage Added
  6. Once the transition is performed, you can see the result as per the condition added for validation.
    Image Removed
    Image Added
    If the validation fails it throws an error as below sample:
    Image Added