Skip to main content

CR Status Rules

This page explains how Caution Report status updates work.

API Endpoints

  • PUT /data/caution-report/update/status/:id

Purpose

CR status update moves a caution report through allowed business statuses and may trigger downstream TMF or GOTH behavior.

Business meaning

Status update is more constrained than a generic update.

The implementation explicitly handles:

  • allowed status targeting
  • assignee field updates
  • terminal status behavior
  • TMF note or status synchronization
  • GOTH-specific handling

Flow summary

StepBusiness meaning
load existing CRtarget CR must exist
validate target status LOVrequested status must be valid
reject In-Progress targetnot allowed in this manual path
if Assigned, set assignee fieldsassignee data is updated
if Closed or Cancel, push note to TMF and update TMF ticket statusterminal statuses trigger downstream sync
build remarkuser remark overrides system remark
if source is GOTH and status not Return, trigger GOTH handlingsource-specific branch exists
save CR note and update status LOVnote and status record move together
update CR master status fieldsfinal CR state is saved
write success auditstatus update is finalized

Implementation note

This matches the current implementation:

  • backend rejects In-Progress with explicit error
  • Assigned updates tmfAssign and tmfAssignName
  • Closed and Cancel try to send note or status update to TMF using earliest activity
  • GOTH source gets special handling except for Return
  • portal uses PUT data/caution-report/update/status/:id

Code refs:

  • intt-portal/src/app/components/pages/main-modules/cr/cr-details/cr-details.component.ts:2960
  • mvp2-data-service/src/modules/caution-report/caution-report.controller.ts:180
  • mvp2-data-service/src/modules/caution-report/caution-report.service.ts:412

What users should know

  • not every status can be set from this path
  • terminal statuses do more than update a single field
  • user-provided remark changes the note content written during the flow
  • GOTH-origin CRs follow a special branch