public class CustomFieldUsageRecalculationJob extends Object implements com.atlassian.scheduler.JobRunner, Startable
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| Modifier and Type | Field and Description |
|---|---|
static String |
LAST_ISSUES_RECALCULATION_DATE_KEY |
static String |
MESSAGE_FAILED_DUE_TO_LOST_LOCK |
static String |
MESSAGE_INIT_COMPLETE |
static String |
SYSTEM_PROPERTY_CALCULATE_USAGE_SCHEDULED_TIME |
| Constructor and Description |
|---|
CustomFieldUsageRecalculationJob(CustomFieldUsageDataService customFieldUsageDataService,
com.atlassian.scheduler.SchedulerService schedulerService,
CustomFieldUsageEnabledCheck customFieldUsageEnabledCheck,
ApplicationProperties applicationProperties,
com.atlassian.beehive.ClusterLockService clusterLockService) |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.scheduler.JobRunnerResponse |
runJob(com.atlassian.scheduler.JobRunnerRequest request) |
void |
start()
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
public static final String SYSTEM_PROPERTY_CALCULATE_USAGE_SCHEDULED_TIME
public static final String LAST_ISSUES_RECALCULATION_DATE_KEY
public static final String MESSAGE_INIT_COMPLETE
public static final String MESSAGE_FAILED_DUE_TO_LOST_LOCK
public CustomFieldUsageRecalculationJob(CustomFieldUsageDataService customFieldUsageDataService, com.atlassian.scheduler.SchedulerService schedulerService, CustomFieldUsageEnabledCheck customFieldUsageEnabledCheck, ApplicationProperties applicationProperties, com.atlassian.beehive.ClusterLockService clusterLockService)
@Nullable public com.atlassian.scheduler.JobRunnerResponse runJob(com.atlassian.scheduler.JobRunnerRequest request)
runJob in interface com.atlassian.scheduler.JobRunnerCopyright © 2002-2024 Atlassian. All Rights Reserved.