private suspend fun updateAssignmentsAfterTemplateUpdate(issue: Issue, event: TemplateChangedEvent, assignmentTypeMapping: Map<AssignmentType, AssignmentType?>, atTime: OffsetDateTime, byUser: User)

Updates types of Assignment on issue where the old type is incompatible with the new template of issue based on assignmentTypeMapping and removes types with no replacement. Adds the crated events to childItems on event

Parameters

issue

the Issue of which the template was updated

event

the event representing the template update

assignmentTypeMapping

used to map old AssignmentTypes to new AssignmentTypes

atTime

the point in time when the modification happened, updates Issue.lastUpdatedAt if necessary

byUser

the User who caused the update, updates Issue.participants if necessary