Skip to content

Commit

Permalink
feat: task name format has been changed
Browse files Browse the repository at this point in the history
  • Loading branch information
gebv committed Feb 9, 2022
1 parent c04ae64 commit f18220d
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions clickup/mirror_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,17 +148,8 @@ func (t *MirrorTask) ModelID() string {
}

func (t *Task) MirrorTaskName(ctx context.Context) string {
taskIDWithName := ""
if t.CustomID != nil {
taskIDWithName = "#" + *t.CustomID
} else {
taskIDWithName = "#" + t.ID
}

taskIDWithName += " " + t.Name

// <ListName>: #<CustomID|TaskID> <TaskName>
return t.GetList(ctx).Name + ": " + taskIDWithName
// <ListName>: <TaskName>
return t.GetList(ctx).Name + ": " + t.Name
}

func (t *Task) MirrorTaskDescription() string {
Expand Down

0 comments on commit f18220d

Please sign in to comment.