Skip to content

Commit

Permalink
Add TimeSpent and fix Task field
Browse files Browse the repository at this point in the history
- Add TimeSpent field to Task structure
- Fix CustomTaskIDs from string to bool
  • Loading branch information
Alex Thurston committed Dec 13, 2023
1 parent f652c5d commit edce6e4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions clickup/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit edce6e4

Please sign in to comment.