Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TimeSpent and fix Task field #49

Merged
merged 1 commit into from
Jan 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
image

TeamID int `url:"team_id,omitempty"`
IncludeSubTasks bool `url:"include_subtasks,omitempty"`
}

type GetBulkTasksTimeInStatusOptions struct {
Expand Down
Loading