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 dd57dfa commit c04ae64
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions clickup/mirror_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,17 +148,17 @@ func (t *MirrorTask) ModelID() string {
}

func (t *Task) MirrorTaskName(ctx context.Context) string {
priority := ""
if t.PriorityID != nil {
priority = fmt.Sprint("!", *t.PriorityID)
}
customID := ""
taskIDWithName := ""
if t.CustomID != nil {
customID = "/" + *t.CustomID
taskIDWithName = "#" + *t.CustomID
} else {
taskIDWithName = "#" + t.ID
}

// <ListName>(<CustomID>): (<Priority>)<TaskName>
return t.GetList(ctx).Name + customID + ": " + priority + " " + t.Name
taskIDWithName += " " + t.Name

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

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

0 comments on commit c04ae64

Please sign in to comment.