You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 28 Next »

On this page

Use case details
Function

Jira expression condition

Jira expression validator

Type

ConditionValidator

Use case description

This is one of the built-in usage examples and simply checks whether the current issue has any unresolved sub-tasks.

This is particularly important if you want to block a parent issue as long as work is still being done on related sub-tasks.

This use case is valid for both conditions and validators. The only difference is that you can specify an additional error message when using a validator.

Complexity

INTERMEDIATE



Configuration steps

Definition of basic (required) parameters


ParameterValue(s) / Steps to set value(s)Notes

Jira expression*

issue.subtasks.filter(s => !(s.resolution != null)).length == 0

This expression makes sure that there are no sub-tasks of the current issue that don't have a resolution set.

Variations

You can easily modify this use case to check for specific resolutions or statuses.

ParameterValue(s) / Steps to set value(s)Notes

Jira expression*

issue.subtasks.filter(s => !(s.resolution.name == "Done")).length == 0
This expression makes sure that there are all sub-tasks of the current issue that have a resolution set to "Done".
Jira expression*
issue.subtasks.filter(s => !(s.status.name == "Done")).length == 0

All sub-tasks must be in the status of DONE



Related examples