Class InitialWatchersSetup

java.lang.Object
com.atlassian.jira.plugins.initialwatchers.InitialWatchersSetup
All Implemented Interfaces:
com.atlassian.sal.api.lifecycle.LifecycleAware

public class InitialWatchersSetup extends Object implements com.atlassian.sal.api.lifecycle.LifecycleAware
Provides multiple ways to add the Initial watchers field to the create issue form - Listens for FeatureEnabledEvent - Listens for ProjectCreatedEvent

On FeatureDisabledEvent, the field will be removed from the different screens.

  • Field Details

  • Constructor Details

  • Method Details

    • register

      @PostConstruct public void register()
    • unregister

      @PreDestroy public void unregister()
    • onStart

      public void onStart()
      Specified by:
      onStart in interface com.atlassian.sal.api.lifecycle.LifecycleAware
    • onProjectCreated

      @EventListener public void onProjectCreated(ProjectCreatedEvent event)
    • onFeatureEnabled

      @EventListener public void onFeatureEnabled(FeatureEnabledEvent featureEvent)
    • onFeatureDisabled

      @EventListener public void onFeatureDisabled(FeatureDisabledEvent featureEvent)
    • onStop

      public void onStop()
      Specified by:
      onStop in interface com.atlassian.sal.api.lifecycle.LifecycleAware