Interface CommentPinManager
- All Known Implementing Classes:
DefaultCommentPinManager
public interface CommentPinManager
The CommentPinManager is used to retrieve and pin comments in Jira.
-
Method Summary
Modifier and TypeMethodDescriptiongetPinnedComments(long issueId) Returns list of pinned comments for given issuebooleanChecks if feature flag is enabledbooleanChecks if dedicated feature flag is enabled for JSMbooleanisPinned(long commentId) Checks if given comment is pinnedpinComment(long issueId, long commentId, String userKey, Instant created) Pins comment in given issuevoidunpinComment(long commentId) Unpins comment
-
Method Details
-
pinComment
Pins comment in given issue- Parameters:
issueId- of issue which has comment to pincommentId- to pinuserKey-created- time of action execution- Returns:
-
unpinComment
void unpinComment(long commentId) Unpins comment- Parameters:
commentId- to unpin
-
isPinned
boolean isPinned(long commentId) Checks if given comment is pinned- Parameters:
commentId-- Returns:
- true if given comment is pinned, otherwise false
-
getPinnedComments
Returns list of pinned comments for given issue- Parameters:
issueId-- Returns:
- list of pinned comments for given issue
-
isFeatureEnabled
boolean isFeatureEnabled()Checks if feature flag is enabled- Returns:
- true if feature flag is enabled, otherwise false
-
isFeatureEnabledForServiceDesk
boolean isFeatureEnabledForServiceDesk()Checks if dedicated feature flag is enabled for JSM- Returns:
- true if feature flag is enabled, otherwise false
-