Updates an IssueComment, returns the updated IssueComment. Checks the authorization status, and checks that the added referenced Artefact can be used on the Issue.

Return

the saved updated IssueComment

Parameters

authorizationContext

used to check for the required permission

input

defines the IssueComment to update


suspend fun updateIssueComment(issueComment: IssueComment, newBodyValue: String?, addedArtefacts: List<Artefact>, removedArtefacts: List<Artefact>, atTime: OffsetDateTime, byUser: User)

Updates an issueComment at atTime as byUser. Does not check the authorization status. Checks for each Artefact in addedArtefacts that it can be used with the Issue the issueComment is on Does not save the updated IssueComment. It is necessary to save the updated issueComment afterwards.

Parameters

issueComment

the IssueComment to update

newBodyValue

if not null, the new body of the issueComment

addedArtefacts

referenced Artefacts to add

removedArtefacts

referenced Artefacts 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