Move tasks between sections

This commit is contained in:
Ian Gulliver
2021-09-11 03:53:50 +00:00
parent 1bae0bf42e
commit c9269718ec
2 changed files with 74 additions and 1 deletions

View File

@@ -37,6 +37,10 @@ func main() {
for _, sec := range secs {
fmt.Printf("\t%s\n", sec)
if sec.Name != "Recently Assigned" {
continue
}
q := &asana.SearchQuery{
SectionsAny: []*asana.Section{sec},
Completed: asana.FALSE,
@@ -49,6 +53,9 @@ func main() {
for _, task := range tasks {
fmt.Printf("\t\t%s\n", task)
a.AddTaskToSection(task, &asana.Section{
GID: "1200372179004456",
})
}
}
}