Description
The fromParent
function retrieves a value from the parent task, if available. This is useful when information from a parent task is needed in a subtask.
Syntax
fromParent(expression)
Arguments
Argument | Description |
---|---|
expression |
The expression to be evaluated. This can include flavors, fields, or other expressions to retrieve values from the parent task. |
Return Types
The function returns the value of the specified expression from the parent task. If the value does not exist, an empty value is returned.
Examples
Description | Formula | Result |
---|---|---|
Retrieve a flavor value from the parent task |
fromParent("flavor('Unicorn')") |
🐪 |
Retrieve a value from a custom field |
fromParent("field('Status')") |
In Progress |
Return a numeric value |
fromParent("flavor('Budget')") |
15000 |
Notes
- The function can only retrieve values from the direct parent task.
- If the specified parent task does not exist or the value is empty, an empty return value is provided.
- Particularly useful for calculations or passing information between tasks in hierarchical structures.
Comments
0 comments
Please sign in to leave a comment.