Class ArchivedStatistics

java.lang.Object
com.atlassian.jira.project.archiving.ArchivedStatistics
All Implemented Interfaces:
InitializingComponent

public class ArchivedStatistics extends Object implements InitializingComponent
This class is not ZDU-friendly. Here's the list of what doesn't work in ZDU:
  • REST endpoints
    • index/summary will show a wrong number of archived issues
    • archiving/count will show a wrong count
    • archiving/browse will show a wrong total
  • IndexManagerBase.reIndexAll() will write a wrong number to audit and analytics
  • Constructor Details

  • Method Details

    • afterInstantiation

      public void afterInstantiation() throws Exception
      Description copied from interface: InitializingComponent
      Called after all the beans are constructed and the ApplicationContext is fully populated. Order of execution is order of bean creation, driven by InitializingComponentProcessor.
      Specified by:
      afterInstantiation in interface InitializingComponent
      Throws:
      Exception
    • invalidate

      public void invalidate()
      Drops existing archived statistics cache
    • getTotalArchivedIssuesCount

      public int getTotalArchivedIssuesCount()
      Total number of issues archived with projects and individually, accounting their intersection
      Returns:
      number of archived issues
    • getIssuesInArchivedProjectsCount

      public int getIssuesInArchivedProjectsCount()
      Number of issues in all archived projects
      Returns:
      number of issues in all archived projects
    • getArchivedIssuesCount

      public int getArchivedIssuesCount()
      Number of issues set as archived in DB. It are issues affected by issue archiving. Value also considers number of issues, that were archived independently, and then affected by project archiving
      Returns:
      number of issues marked as archived in DB