allow moving tasks between projects.
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-02-14 17:44:07 +01:00
parent 73855ffdd1
commit 8313a27251
6 changed files with 99 additions and 3 deletions
+4
View File
@@ -49,6 +49,9 @@ func (task *Task) Update(update TaskUpdate) {
if update.ClearStatusTag {
task.StatusTag = nil
}
if update.ProjectID != nil {
task.ProjectID = *update.ProjectID
}
}
type TaskUpdate struct {
@@ -61,6 +64,7 @@ type TaskUpdate struct {
ClearEndTime bool `json:"clearEndTime"`
StatusTag *string `json:"statusTag"`
ClearStatusTag bool `json:"clearStatusTag"`
ProjectID *string `json:"projectId"`
}
type TaskResult struct {