[tasks.get]
tasks.get is a slot in the tasks namespace, in Hyperlambda, the language of Magic Cloud. Looks up a single stored task by ID and returns its body, description, and next due date.
- Value (
task-id), required: Task ID to retrieve - Returns: Resolves to the task fields as child nodes, optionally including a [schedules] node
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
[schedules] |
bool | no | Whether to include schedules for the task. |
Guide: How to use [tasks.get]
JSON declaration
This is the complete declaration of tasks.get, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "tasks.get",
"description": "Looks up a single stored task by ID and returns its body, description, and next due date",
"signature": {
"input": {
"kind": "task-id",
"description": "Task ID to retrieve",
"required": true,
"mode": "ValueOrExpression"
},
"children": {
"schedules": {
"type": "bool",
"description": "Whether to include schedules for the task",
"required": false,
"mode": "ValueOrExpression",
"cardinality": "ZeroOrOne",
"role": "Option",
"projection": "Value"
}
},
"output": {
"mode": "Lambda",
"kind": "task,lambda-tree",
"description": "Resolves to the task fields as child nodes, optionally including a [schedules] node"
}
}
}
← tasks.execute |
all tasks.* slots |
tasks.list → |