Skip to content

Commit

Permalink
Updates case document when case is moved to escalated or closed status (
Browse files Browse the repository at this point in the history
  • Loading branch information
mvilanova authored and rutvijmehta-harness committed Mar 17, 2023
1 parent 144499a commit f7b4c11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dispatch/case/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ def case_update_flow(
# we update the ticket
ticket_flows.update_case_ticket(case=case, db_session=db_session)

if case.status in [CaseStatus.escalated, CaseStatus.closed]:
# we update the document
document_flows.update_document(document=case.case_document, db_session=db_session)

# we update the tactical group if we have a new assignee
if previous_case.assignee.individual.email != assignee_email:
log.debug(
Expand Down

0 comments on commit f7b4c11

Please sign in to comment.