Added migration of task relations

This commit is contained in:
kolaente 2019-10-20 17:53:54 +02:00
parent 9dbeddc635
commit c588553733
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 7 additions and 2 deletions

View File

@ -174,8 +174,13 @@ outer:
log.Printf("Updated description of task %d", t.Id)
}
// TODO: update all labels afterwards
// TODO: create all relations afterwards
// Create all task relations
for _, tr := range taskRelations {
_, _, err := client.TaskApi.TasksTaskIDRelationsPut(auth, *tr, tr.TaskId)
if err != nil {
log.Fatalf("Error creating task relation between tasks %d and %d: %v", tr.TaskId, tr.OtherTaskId, err)
}
}
log.Println("Done.")
}