Package com.atlassian.jira.event.issue
Class MentionIssueEvent
java.lang.Object
com.atlassian.jira.event.issue.MentionIssueEvent
- Direct Known Subclasses:
MentionIssueCommentEvent
@PublicApi
@ParametersAreNonnullByDefault
@ReturnValuesAreNonnullByDefault
public class MentionIssueEvent
extends Object
When a user mentions another user on an issue via the @username or [~username] syntax this event will be fired. It
contains the user that added the comment or description, all users mentioned, the issue as well as the text in which
the mentions occurred. Finally it also contains the fieldId of the field in which users were mentioned.
- Since:
- v5.0
-
Constructor Summary
ConstructorsConstructorDescriptionMentionIssueEvent
(Issue issue, ApplicationUser fromUser, Set<ApplicationUser> toUsers, String mentionText, String fieldId, Set<NotificationRecipient> currentRecipients) Deprecated.MentionIssueEvent
(Issue issue, ApplicationUser fromUser, Set<ApplicationUser> toUsers, Set<NotificationRecipient> recipients, String mentionText, String fieldId, Set<NotificationRecipient> currentRecipients) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.getIssue()
Returns the recipients that should receive an email for this mention, after de-duplicating users that already received an email for an action in this bundle.Returns the set of mentioned users, after permission checks.int
hashCode()
toString()
-
Constructor Details
-
MentionIssueEvent
@Deprecated public MentionIssueEvent(Issue issue, ApplicationUser fromUser, Set<ApplicationUser> toUsers, String mentionText, String fieldId, @Nullable Set<NotificationRecipient> currentRecipients) Deprecated. -
MentionIssueEvent
public MentionIssueEvent(Issue issue, ApplicationUser fromUser, Set<ApplicationUser> toUsers, Set<NotificationRecipient> recipients, String mentionText, String fieldId, @Nullable Set<NotificationRecipient> currentRecipients)
-
-
Method Details
-
getIssue
-
getFromUser
-
getToUsers
Returns the set of mentioned users, after permission checks. -
getRecipients
Returns the recipients that should receive an email for this mention, after de-duplicating users that already received an email for an action in this bundle.- Since:
- 8.9
-
getMentionText
-
getFieldId
-
getCurrentRecipients
Deprecated.Returns the recipients that are already receiving an email for the event that triggered this mention (such as issue commented event, etc.). -
equals
-
hashCode
public int hashCode() -
toString
-