public class

CurrentAssignee

extends AbstractNotificationType
java.lang.Object
   ↳ com.atlassian.jira.notification.type.AbstractNotificationType
     ↳ com.atlassian.jira.notification.type.CurrentAssignee

Summary

Public Constructors
CurrentAssignee(JiraAuthenticationContext jiraAuthenticationContext)
Public Methods
String getDisplayName()
List<NotificationRecipient> getRecipients(IssueEvent event, String argument)
Protected Methods
ApplicationUser getPreviousAssignee(IssueEvent event)
Designed to be overrriden for testing.
[Expand]
Inherited Methods
From class com.atlassian.jira.notification.type.AbstractNotificationType
From class java.lang.Object
From interface com.atlassian.jira.notification.NotificationType

Public Constructors

public CurrentAssignee (JiraAuthenticationContext jiraAuthenticationContext)

Public Methods

public String getDisplayName ()

public List<NotificationRecipient> getRecipients (IssueEvent event, String argument)

Protected Methods

protected ApplicationUser getPreviousAssignee (IssueEvent event)

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