Description
The maxFolder function returns the largest value of the provided function of all objects in a specific folder. This is particularly useful when performing calculations at the group level.
Syntax
maxFolder('expression', includeSubtasks)
Arguments
| Argument | Description |
|---|---|
expression |
The expression whose largest 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 largest value of the specified expression (expression) as a number.
Examples
| Description | Example |
|---|---|
| Calculate the largest value of estimated costs in the folder |
maxFolder('cost', true)
|
| Largest value of the duration of all tasks in the folder (without subtasks) |
maxFolder('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.