diff --git a/src/wrike_ist/wrike.cljs b/src/wrike_ist/wrike.cljs index 2373001..28952af 100644 --- a/src/wrike_ist/wrike.cljs +++ b/src/wrike_ist/wrike.cljs @@ -217,10 +217,14 @@ (defn progress-task [{:keys [permalink]} wanted-status] - (when (not-empty wanted-status) - (.then - (find-task permalink) - #(update-task-status % {:wanted-status wanted-status})))) + (if-not (= "-" wanted-status) + (.then + (find-task permalink) + #(update-task-status % {:wanted-status wanted-status + :wanted-group "In Progress"})) + (do + (js/console.log "Skipping `closed` transition because it's set to \"-\"") + (js/Promise.resolve)))) (defn complete-task [{:keys [permalink]} wanted-status]