Skip to content

Commit 16e3fe8

Browse files
author
Jens Kürten
committed
add title and description to task configuration
1 parent f3b7618 commit 16e3fe8

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

csfunctions/actions/start_workflow.py

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ class TaskConfiguration(BaseModel):
1919
default_factory=list,
2020
description="List of recipients for the task (only used by information tasks)",
2121
)
22+
description: str | None = Field(
23+
default=None, description="Description of the task. If not set, the existing description will be kept."
24+
)
25+
title: str | None = Field(
26+
default=None, description="Title of the task. If not set, the existing title will be kept."
27+
)
2228

2329

2430
class StartWorkflowAction(BaseAction):

docs/reference/actions.md

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ Creates a new workflow from a template and starts it.
5050
|task_id|str|Identifier for the task|
5151
|responsible|[Subject](actions.md#Subject) \| None|Responsible Subject for the task|
5252
|recipients|list[[Subject](actions.md#Subject)]|List of recipients (only used by information tasks)|
53+
|description|str \| None|Description of the task. If not set, the existing description will be kept.|
54+
|title|str \| None|Title of the task. If not set, the existing title will be kept.|
5355

5456
**Subject:**
5557

json_schemas/workload_response.json

+26
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,32 @@
181181
},
182182
"title": "Recipients",
183183
"type": "array"
184+
},
185+
"description": {
186+
"anyOf": [
187+
{
188+
"type": "string"
189+
},
190+
{
191+
"type": "null"
192+
}
193+
],
194+
"default": null,
195+
"description": "Description of the task. If not set, the existing description will be kept.",
196+
"title": "Description"
197+
},
198+
"title": {
199+
"anyOf": [
200+
{
201+
"type": "string"
202+
},
203+
{
204+
"type": "null"
205+
}
206+
],
207+
"default": null,
208+
"description": "Title of the task. If not set, the existing title will be kept.",
209+
"title": "Title"
184210
}
185211
},
186212
"required": [

0 commit comments

Comments
 (0)