blocked statuses are ignored when done statuses are checked

This commit is contained in:
iLLiCiTiT 2020-08-10 16:25:23 +02:00
parent 0c67a85ce7
commit ca165f6139

View file

@ -148,7 +148,12 @@ class NextTaskUpdate(BaseEvent):
continue
parents_task_status = statuses_by_id[parents_task["status_id"]]
if parents_task_status["state"]["name"].lower() != "done":
low_state_name = parents_task_status["state"]["name"].lower()
# Skip if task's status is in blocked state (e.g. Omitted)
if low_state_name != "blocked":
continue
if low_state_name != "done":
all_same_type_taks_done = False
break