Use JQL to create a validator
Summary
If you need to validate a transition based on the existence or non-existence of one or more issues determined from a JQL query, then read on! It is very simple to do with a Conditioned validator.
Steps
Step | Discussion | Examples |
|---|---|---|
Create a JQL query that will determine if the transition can proceed or not. | Test the JQL in the Issue Navigator first. | No unresolved sub-tasks: parent = XXX-1 and resolution is empty |
Add a Conditioned validator to the appropriate workflow transition | Assumes you have installed the Update on Transition for Jira add-on |
|
Put the JQL query in the JQL Query field | It is likely you need to use one or more substitution variables like %original_key% in place of a specific values you may have used while testing | parent = %original_key% and resolution is empty |
Condition by how many issues are found by the query |
| All sub-tasks must be resolved Condtion 1:
Value: %jql_result_count%
Regex: 0
|
Add a user friendly message that will show if the validator fails | Add appropriate text to the Message field and optionally use substitution variables. |
Message: All sub-tasks must be resolved before you can proceed. The following sub-tasks are not resolved: %jql_result_list%.
|
Save the post function |
|
|
Run a test scenario |
|
|
Screenshot
Need support? Create a request with our support team.
Copyright © 2005 - 2025 Appfire | All rights reserved.
