Skip to content

Commit

Permalink
Implement auto-open of next task after closing the previous one
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdu-moustafa committed Jan 9, 2025
1 parent e7a1a21 commit 30e5e12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions changes/TI-1331.other
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The next task in the sequence of the standard process can only be automatically opened after the responsible person closes the previous task. [amo]
5 changes: 2 additions & 3 deletions opengever/task/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,8 @@ def review_state_changed(task, event):
task.close_main_task()
return

if event.action not in ['task-transition-open-resolved',
'task-transition-open-tested-and-closed',
'task-transition-in-progress-resolved',
if event.action not in ['task-transition-open-tested-and-closed',
'task-transition-resolved-tested-and-closed',
'task-transition-in-progress-tested-and-closed',
'task-transition-rejected-skipped']:
return
Expand Down

0 comments on commit 30e5e12

Please sign in to comment.