Move channel name to notes

This commit is contained in:
Ian Gulliver
2022-10-28 16:10:04 +00:00
parent 7bd2d90a20
commit 3c96973678
3 changed files with 28 additions and 5 deletions

View File

@@ -23,6 +23,7 @@ type addTaskRequest struct {
type addTaskRequestInt struct {
Name string `json:"name"`
HtmlNotes string `json:"html_notes"`
Workspace string `json:"workspace"`
Assignee string `json:"assignee"`
Projects []string `json:"projects"`
@@ -38,10 +39,11 @@ func NewAsanaClient() *AsanaClient {
}
}
func (ac *AsanaClient) CreateTask(name string) error {
func (ac *AsanaClient) CreateTask(name string, notes string) error {
body := &addTaskRequest{
Data: &addTaskRequestInt{
Name: name,
HtmlNotes: notes,
Workspace: ac.workspace,
Assignee: ac.assignee,
Projects: []string{ac.project},