-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
When I set Priority in Clickup dashboard (e.g. High), I get this error
Traceback (most recent call last):
File "C:\PROJECT\Clickup\main.py", line 29, in main
click_up_client.fetch_data()
File "C:\PROJECT\Clickup\request_manager\clickup\client.py", line 40, in fetch_data
tasks = c.get_tasks(self.list_id, include_closed=True)
File "C:\Users\x\.conda\envs\general\lib\site-packages\clickupython\client.py", line 631, in get_tasks
return models.Tasks.build_tasks(fetched_tasks)
File "C:\Users\x\.conda\envs\general\lib\site-packages\clickupython\models.py", line 703, in build_tasks
return Tasks(**self)
File "pydantic\main.py", line 406, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for Tasks
tasks -> 2 -> priority
value is not a valid integer (type=type_error.integer)This is a part of the result as json from postman and clickup api
"watchers": [],
"checklists": [],
"tags": [],
"parent": null,
"priority": {
"color": "#f8ae00",
"id": "2",
"orderindex": "2",
"priority": "high"
},
as you see, the Priority is a JSON object, not an int.
So what is the solution?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels