Class InitialWatchersAssigner
java.lang.Object
com.atlassian.jira.plugins.initialwatchers.InitialWatchersAssigner
Creation event listener that handles initial watchers and add them to issue watchers and send notification to initial watchers
-
Constructor Summary
ConstructorsConstructorDescriptionInitialWatchersAssigner(com.atlassian.event.api.EventPublisher eventPublisher, WatcherService watcherService, MentionService mentionService, FieldLayoutManager fieldLayoutManager, InitialWatchersFields initialWatchersFields) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInitialWatchers(Issue issue, ApplicationUser remoteUser) Adds the initial watchers from the custom field in the issue provided and notifies them via mention service.
-
Constructor Details
-
InitialWatchersAssigner
public InitialWatchersAssigner(com.atlassian.event.api.EventPublisher eventPublisher, WatcherService watcherService, MentionService mentionService, FieldLayoutManager fieldLayoutManager, InitialWatchersFields initialWatchersFields)
-
-
Method Details
-
addInitialWatchers
public void addInitialWatchers(Issue issue, ApplicationUser remoteUser) throws InitialWatchersFailedException Adds the initial watchers from the custom field in the issue provided and notifies them via mention service. Finally, it removes the custom field from the issue.- Parameters:
issue-- Throws:
InitialWatchersFailedException
-