diff --git a/module/task/task.go b/module/task/task.go index 4d98ecd..5c3309f 100644 --- a/module/task/task.go +++ b/module/task/task.go @@ -15,15 +15,15 @@ type Data struct { } type Request struct { - ResourceSubtype string `json:"resource_subtype"` + ResourceSubtype string `json:"resource_subtype,omitempty"` Assignee string `json:"assignee"` Name string `json:"name"` - Completed bool `json:"completed"` - DueOn string `json:"due_on"` - Liked bool `json:"linked"` + Completed bool `json:"completed,omitempty"` + DueOn string `json:"due_on,omitempty"` + Liked bool `json:"linked,omitempty"` // Notes refer to the content of each Ticket Notes string `json:"notes"` - StartOn string `json:"start_on"` + StartOn string `json:"start_on,omitempty"` CustomFields map[string]string `json:"custom_fields"` Projects []string `json:"projects"` Workspace string `json:"workspace"`