On this page

Use case

Evaluate if work has been logged in a sub-task to prevent transitioning the parent issue when no work has been logged.

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. 

Configuration

Jira expression*

issue?.subtasks.some(s => s?.timeSpent != null)

Any of the sub-tasks must have work logged for the issue to be transitioned.

Variations

Jira expression*

issue.timeSpent != null || issue?.subtasks.some(s => s?.timeSpent != null)

Either the parent issue or any of the sub-tasks must have work logged for the issue to be transitioned.

Jira expression*

issue?.subtasks.every(s => s?.timeSpent != null)

All of the sub-tasks must have work logged for the parent issue to be transitioned.


  Related use cases

JWT feature

Workflow function

Jira expression condition

Jira expression validator

Parser functionsLeave empty (no parser functions are used)
Use case description

Evaluate if work has been logged in a sub-task to prevent transitioning the parent issue when no work has been logged.

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