Class InitialWatchersListener

java.lang.Object
com.atlassian.jira.plugins.initialwatchers.InitialWatchersListener

public class InitialWatchersListener extends Object
Creation event listener that handles initial watchers and add them to issue watchers and send notification to initial watchers
  • Constructor Details

  • Method Details

    • onStart

      @PostConstruct public void onStart()
    • onStop

      @PreDestroy public void onStop()
    • onIssueCreatedOrUpdated

      @EventListener public void onIssueCreatedOrUpdated(IssueEvent event)
      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

      @EventListener public void onAsyncInitialWatchersEvent(AsyncInitialWatchersEvent event)
      Listens for the async issue created event generated after issue creation (see #onIssueCreatedOrUpdated())and adds the watchers to the issue.