This article explains how to use Run CLI for Jira 's action in a workflow validator.
Instructions
- Log in into the Jira instance as an Administrator in your Jira instance.
- Edit the workflow where Run CLI is to be added as a validator.
- Select the transition on to which the CLI validator should needs to be added and then click validatorthe link Validators.
- Click Add validator and select CLI action from the list of validation options.
- Add the CLI action as per the requirement and save the setiingsettings. We considered As an example of adding , add a comment on the to an issue using the Run CLI action if the custom field was set to A.
- Once the transition is performed, you can see the result as per the validation condition added for validation.
If the validation fails it throws an error as below sample: