Class CurrentAssignee
java.lang.Object
com.atlassian.jira.notification.type.AbstractNotificationType
com.atlassian.jira.notification.type.CurrentAssignee
- All Implemented Interfaces:
NotificationType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionText to display for this type, on the "Add Notification" page.protected ApplicationUsergetPreviousAssignee(IssueEvent event) Designed to be overrriden for testing.getRecipients(IssueEvent event, String argument) Who is to be notified of an event.Methods inherited from class com.atlassian.jira.notification.type.AbstractNotificationType
doValidation, getArgumentDisplay, getArgumentValue, getType
-
Constructor Details
-
CurrentAssignee
-
-
Method Details
-
getRecipients
Description copied from interface:NotificationTypeWho is to be notified of an event.- Parameters:
event- The event, eg. issue createdargument- Configuration from notification scheme, eg. group name, custom field id.- Returns:
- A list of
NotificationRecipients.
-
getPreviousAssignee
Designed to be overrriden for testing. Gets the previous assignee by looking in change history.TODO this could be improved by carrying the changes themselves in the IssueEvent instead of a change group GV and hence a DB interaction is required
- Parameters:
event- the issue event in play- Returns:
- a previous assignee or null if there isnt one
-
getDisplayName
Description copied from interface:NotificationTypeText to display for this type, on the "Add Notification" page.- Returns:
- (Internationalized) text to display, eg. "Group".
-