Description
The minFolder function returns the smallest value of the provided function of all objects in a specific folder. This is particularly useful when performing calculations at the group level.
Syntax
minFolder('expression', includeSubtasks)
Arguments
| Argument | Description |
|---|---|
expression |
The expression whose smallest value is to be calculated. |
includeSubtasks |
A boolean value (true or false), indicating whether to include subtasks in the calculation. |
Return Type
The function returns the smallest value of the specified expression (expression) as a number.
Examples
| Description | Example |
|---|---|
| Calculate the smallest value of estimated costs in the folder |
minFolder('cost', true)
|
| Smallest value of the duration of all tasks in the folder (without subtasks) |
minFolder('duration', false)
|
Notes
- The function only considers the objects that are within the specified folder.
- The
includeSubtasksparameter is optional. If not specified, the default value isfalse. - Ensure that the expression (
expression) is correctly defined to achieve the desired results.
Comments
0 comments
Please sign in to leave a comment.