Class InitialWatchersListener
java.lang.Object
com.atlassian.jira.plugins.initialwatchers.InitialWatchersListener
Creation event listener that handles initial watchers and add them to issue watchers and send notification to initial watchers
-
Constructor Summary
ConstructorsConstructorDescriptionInitialWatchersListener(com.atlassian.event.api.EventPublisher eventPublisher, FeatureManager featureManager, InitialWatchersAssigner worker) -
Method Summary
Modifier and TypeMethodDescriptionvoidListens for the async issue created event generated after issue creation (see #onIssueCreatedOrUpdated())and adds the watchers to the issue.voidUpon receipt of a synchronous Issue Created/Updated Event, we generate a new async one This allows the watcher addition to be done asynchronously and without affecting the issue creation/editionvoidonStart()voidonStop()
-
Constructor Details
-
InitialWatchersListener
public InitialWatchersListener(com.atlassian.event.api.EventPublisher eventPublisher, FeatureManager featureManager, InitialWatchersAssigner worker)
-
-
Method Details
-
onStart
@PostConstruct public void onStart() -
onStop
@PreDestroy public void onStop() -
onIssueCreatedOrUpdated
Upon receipt of a synchronous Issue Created/Updated Event, we generate a new async one This allows the watcher addition to be done asynchronously and without affecting the issue creation/edition -
onAsyncInitialWatchersEvent
Listens for the async issue created event generated after issue creation (see #onIssueCreatedOrUpdated())and adds the watchers to the issue.
-