diff --git a/clickup/tasks.go b/clickup/tasks.go index e64e916..d05c6e8 100644 --- a/clickup/tasks.go +++ b/clickup/tasks.go @@ -34,7 +34,7 @@ type TaskRequest struct { LinksTo string `json:"links_to,omitempty"` CheckRequiredCustomFields bool `json:"check_required_custom_fields,omitempty"` CustomFields []CustomFieldInTaskRequest `json:"custom_fields,omitempty"` - CustomItemId int `json:"custom_item_id,omitempty"` // To create a task that doesn't use a custom task type, either don't include this field in the request body, or send 'null'. To create this task as a Milestone, send a value of 1. To use a custom task type, send the custom task type ID as defined in your Workspace, such as 2. + CustomItemId int `json:"custom_item_id,omitempty"` // To create a task that doesn't use a custom task type, either don't include this field in the request body, or send 'null'. To create this task as a Milestone, send a value of 1. To use a custom task type, send the custom task type ID as defined in your Workspace, such as 2. } type CustomFieldInTaskRequest struct { @@ -45,7 +45,7 @@ type CustomFieldInTaskRequest struct { type Task struct { ID string `json:"id"` CustomID string `json:"custom_id"` - CustomItemId int `json:"custom_item_id"` // A null value means this item is a task. A value of 1 is a Milestone. Any other number is a custom task type. + CustomItemId int `json:"custom_item_id"` // A null value means this item is a task. A value of 1 is a Milestone. Any other number is a custom task type. Name string `json:"name"` TextContent string `json:"text_content"` Description string `json:"description"` diff --git a/clickup/tasks_test.go b/clickup/tasks_test.go index ef5c8c1..05a69a2 100644 --- a/clickup/tasks_test.go +++ b/clickup/tasks_test.go @@ -19,7 +19,7 @@ func TestTasksService_GetTask(t *testing.T) { `{ "id": "9hx", "custom_id":null, - "custom_item_id": null, + "custom_item_id": null, "name": "Task Name", "text_content": "New Task Description", "description": "New Task Description", @@ -81,11 +81,11 @@ func TestTasksService_GetTask(t *testing.T) { } want := &Task{ - ID: "9hx", + ID: "9hx", CustomItemId: 0, - Name: "Task Name", - TextContent: "New Task Description", - Description: "New Task Description", + Name: "Task Name", + TextContent: "New Task Description", + Description: "New Task Description", Status: TaskStatus{ Status: "in progress", Color: "#d3d3d3",