From edce6e470c0230f349ba8966d17f78069f9b781a Mon Sep 17 00:00:00 2001 From: Alex Thurston Date: Wed, 13 Dec 2023 11:22:14 -0500 Subject: [PATCH] Add TimeSpent and fix Task field - Add TimeSpent field to Task structure - Fix CustomTaskIDs from string to bool --- clickup/tasks.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/clickup/tasks.go b/clickup/tasks.go index d6577eb..f2b9e16 100644 --- a/clickup/tasks.go +++ b/clickup/tasks.go @@ -63,6 +63,7 @@ type Task struct { StartDate string `json:"start_date,omitempty"` Points Point `json:"points,omitempty"` TimeEstimate int64 `json:"time_estimate"` + TimeSpent int64 `json:"time_spent"` CustomFields []CustomField `json:"custom_fields"` Dependencies []Dependence `json:"dependencies"` LinkedTasks []LinkedTask `json:"linked_tasks"` @@ -251,9 +252,9 @@ func (cfs CustomFieldsInGetTasksRequest) EncodeValues(key string, v *url.Values) } type GetTaskOptions struct { - CustomTaskIDs string `url:"custom_task_ids,omitempty"` - TeamID int `url:"team_id,omitempty"` - IncludeSubTasks bool `url:"include_subtasks,omitempty"` + CustomTaskIDs bool `url:"custom_task_ids,omitempty"` + TeamID int `url:"team_id,omitempty"` + IncludeSubTasks bool `url:"include_subtasks,omitempty"` } type GetBulkTasksTimeInStatusOptions struct {