You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add To-do due date/time and description
* tiny tweaks
* changing to datetime for consistency reasons
following review comment by frenck.
* Update source/_integrations/todo.markdown
* Update remaining occurrences for due_date_time
---------
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
| `item` | no | the name of the to-do Item. | Submit income tax return
63
+
| `due_date` | yes | The date the to-do item is expected to be completed. | 2024-04-10
64
+
| `due_datetime` | yes | The date and time the to-do item is expected to be completed. | 2024-04-10 23:00:00
65
+
| `description` | yes | A more complete description than the one provided by the summary | Collect all necessary documents and submit the final return.
66
+
67
+
Only one of `due_date` or `due_datetime` may be specified.
63
68
64
69
This is a full example of service call in YAML:
65
70
@@ -68,21 +73,24 @@ service: todo.add_item
68
73
target:
69
74
entity_id: todo.personal_tasks
70
75
data:
71
-
item: "Submit income tax return"
72
-
```
76
+
item: "Submit Income Tax Return"
77
+
due_date: "2024-04-10"
78
+
description: "Collect all necessary documents and submit the final return."
73
79
74
80
### Service `todo.update_item`
75
81
76
82
Update a to-do item. A to-do list `target` is selected with a [Target Selector](/docs/blueprint/selectors/#target-selector) and the `data` payload supports the following fields:
77
83
78
84
| Service data attribute | Optional | Description | Example |
| `item` | no | The name of the to-do item to update. | Submit income tax return
81
-
| `rename` | yes | The new name of the to-do item. | Something else
82
-
| `status` | yes | The overall status of the to-do item. | `needs_action` or `completed`
83
-
84
-
At least one of `rename` or `status` is required. This is a full example of
85
-
a service call that updates the status and the name of a to-do item.
86
+
| `item` | no | The name of the to-do Item to update. | Submit income tax return
87
+
| `rename` | yes | The new name of the to-do Item. | Something else
88
+
| `status` | yes | The overall status of the To-do Item. | `needs_action` or `completed`
89
+
| `due_date` | yes | The date the to-do item is expected to be completed. | 2024-04-10
90
+
| `due_datetime` | yes | The date and time the to-do item is expected to be completed. | 2024-04-10 23:00:00
91
+
| `description` | yes | A more complete description than the one provided by the summary. | Collect all necessary documents and submit the final return.
92
+
93
+
At least one of `rename` or `status` is required. Only one of `due_date` or `due_datetime` may be specified. This is a full example of a service call that updates the status and the name of a to-do item.
0 commit comments