Class CustomFieldUsageRecalculationJob

java.lang.Object
com.atlassian.jira.issue.fields.usage.CustomFieldUsageRecalculationJob
All Implemented Interfaces:
Startable, com.atlassian.scheduler.JobRunner

public class CustomFieldUsageRecalculationJob extends Object implements com.atlassian.scheduler.JobRunner, Startable
Job for initial calculation and updating of `Last value update` and `Issues` data (see CustomFieldUsageDataService). Recalculating `Issues` data by default happens once per day at 3 AM server time. The time can be changed by setting SYSTEM_PROPERTY_CALCULATE_USAGE_SCHEDULED_TIME property. Initial `Last value update` calculation by default will happen once after upgrade. It can be also forced by admin by setting APKeys.JIRA_CUSTOM_FIELD_USAGE_INIT_DATA_REQUIRED flag to true. since 8.16
  • Field Details

    • SYSTEM_PROPERTY_CALCULATE_USAGE_SCHEDULED_TIME

      public static final String SYSTEM_PROPERTY_CALCULATE_USAGE_SCHEDULED_TIME
      See Also:
    • LAST_ISSUES_RECALCULATION_DATE_KEY

      public static final String LAST_ISSUES_RECALCULATION_DATE_KEY
      See Also:
    • MESSAGE_INIT_COMPLETE

      public static final String MESSAGE_INIT_COMPLETE
    • MESSAGE_FAILED_DUE_TO_LOST_LOCK

      public static final String MESSAGE_FAILED_DUE_TO_LOST_LOCK
  • Constructor Details

  • Method Details

    • runJob

      @Nullable public com.atlassian.scheduler.JobRunnerResponse runJob(com.atlassian.scheduler.JobRunnerRequest request)
      Specified by:
      runJob in interface com.atlassian.scheduler.JobRunner
    • start

      public void start()
      Description copied from interface: Startable
      This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
      Specified by:
      start in interface Startable