Example of a CLI Validator

Description

This shows how to configure a CLI validator that can prevent a transition from occurring based on the results of a CLI action. In this case, we will check the existence of a JIRA project. This page was motivated from this question: Example of a CLI Validator.

Configuration

  • This configuration assumes you have configured a user variable called jira-local that represents the JIRA server and credentials. See User Defined Substitution Variables.

Validator Fail Message

  • If the project does not exist, the validator will stop the transition from failing an issue the following message to the user.


Log a request with our support team.

Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.