Unpins an Issue on a Trackable, returns the created RemovedFromPinnedIssuesEvent, or null if the Issue was not pinned on the Trackable. Checks the authorization status

Return

the saved created RemovedFromPinnedIssuesEvent or null if no event was created

Parameters

authorizationContext

used to check for the required permission

input

defines which Issue to unpin on which Trackable


Unpins an issue on a trackable at atTime as byUser and adds a RemovedFromPinnedIssuesEvent to the timeline. Creates the event even if the issue was not pinned on the trackable. Only removes the issue from the pinnedIssues on trackable if no newer timeline item exists which adds it again. Does not check the authorization status. Does neither save the created RemovedFromPinnedIssuesEvent nor the issue. It is necessary to save the issue or returned RemovedFromPinnedIssuesEvent afterwards.

Parameters

issue

the Issue to unpin

trackable

the Trackable where issue should be unpinned

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