private suspend fun removeTemplatedField(issue: Issue, field: String, atTime: OffsetDateTime, byUser: User): RemovedTemplatedFieldEvent

Removes a templated field from an Issue at atTime as byUser. Should only be used during template update. Does not check the authorization status. Assumes that a templated field with name field exists. Does neither save the created RemovedTemplatedFieldEvent or the issue. Requires to save the returned RemovedTemplatedFieldEvent or the issue.

Return

the created RemovedTemplatedFieldEvent

Parameters

issue

the Issue from which the templated field is removed

field

the name of the templated field to remove

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