From c04ae64e6d59b476e7fdc3ef882f45b1fc3b5391 Mon Sep 17 00:00:00 2001 From: George BV Date: Wed, 9 Feb 2022 13:21:47 +0300 Subject: [PATCH] feat: task name format has been changed --- clickup/mirror_task.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/clickup/mirror_task.go b/clickup/mirror_task.go index fb560ea..9171085 100644 --- a/clickup/mirror_task.go +++ b/clickup/mirror_task.go @@ -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 } - // (): () - return t.GetList(ctx).Name + customID + ": " + priority + " " + t.Name + taskIDWithName += " " + t.Name + + // : # + return t.GetList(ctx).Name + ": " + taskIDWithName } func (t *Task) MirrorTaskDescription() string {