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

Compare with Current View Page History

« Previous Version 2 Next »

Use case

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 subtasks.

Use case details
ConditionJira expression condition
ValidatorJira expression validator
Post function
Complexity

BEGINNER



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 o.

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



This is how it's done


Screencast

<Screencast goes in here> Detailed instruction can be found here: https://www.decadis.net/confluence/display/XAPPSBRANDING/Screencasts+Framework

Use multimedia macro!


This is how it should look like


WhereFinal configuration
Backend

Frontend


Related examples