Changes the title of an Issue, returns the created TitleChangedEvent or null if the title was not changed. Checks the authorization status

Return

the saved created TitleChangedEvent or null if no event was created

Parameters

authorizationContext

used to check for the required permission

input

defines the new title and of which issue to change it


suspend fun changeIssueTitle(issue: Issue, oldTitle: String, newTitle: String, atTime: OffsetDateTime, byUser: User, updateContext: NodeBatchUpdateContext): TitleChangedEvent

Changes the title of an issue at atTime as byUser and adds a TitleChangedEvent to the timeline. Creates the event even if the title was not changed. Only changes the title if no newer timeline item exists which changes it. Does not check the authorization status. Does neither save the created TitleChangedEvent nor the issue. It is necessary to save the issue or returned TitleChangedEvent afterwards.

Parameters

issue

the Issue where the title should be changed

oldTitle

the old title

newTitle

the new title

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

updateContext

currently unused