Class TimeTrackingReport
java.lang.Object
com.atlassian.jira.plugin.report.impl.AbstractReport
com.atlassian.jira.plugin.corereports.report.impl.TimeTrackingReport
- All Implemented Interfaces:
Report
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.atlassian.jira.plugin.report.impl.AbstractReport
AbstractReport.MutableLong -
Field Summary
Fields inherited from class com.atlassian.jira.plugin.report.impl.AbstractReport
descriptor -
Constructor Summary
ConstructorsConstructorDescriptionTimeTrackingReport(VersionManager versionManager, ApplicationProperties applicationProperties, ConstantsManager constantsManager, SearchService searchService, BuildUtilsInfo buildUtilsInfo, ReportSubTaskFetcher reportSubTaskFetcher, SubTaskManager subTaskManager) -
Method Summary
Modifier and TypeMethodDescriptiongenerateReportExcel(ProjectActionSupport action, Map reqParams) By default, will throw an UnsuppportedOperationException as reports don't support Excel by default.generateReportHtml(ProjectActionSupport action, Map reqParams) Generate the report's HTML - usually from the Velocity resource named "html".intintgetProjectVersionIds(Project project) Get a collection of all version ids in the selected projectbooleanBy default, reports do not have an Excel view.booleanWhether or not to show this report in the interface.voidvalidate(ProjectActionSupport action, Map params) Validate the parameters passed to this report from the UI.Methods inherited from class com.atlassian.jira.plugin.report.impl.AbstractReport
getDescriptor, getIssueConstant, init
-
Constructor Details
-
TimeTrackingReport
@Inject public TimeTrackingReport(VersionManager versionManager, ApplicationProperties applicationProperties, ConstantsManager constantsManager, SearchService searchService, BuildUtilsInfo buildUtilsInfo, ReportSubTaskFetcher reportSubTaskFetcher, SubTaskManager subTaskManager)
-
-
Method Details
-
showReport
public boolean showReport()Description copied from class:AbstractReportWhether or not to show this report in the interface. The default is "true".- Specified by:
showReportin interfaceReport- Overrides:
showReportin classAbstractReport
-
generateReportHtml
Description copied from interface:ReportGenerate the report's HTML - usually from the Velocity resource named "html".- Throws:
Exception
-
generateReportExcel
Description copied from class:AbstractReportBy default, will throw an UnsuppportedOperationException as reports don't support Excel by default.- Specified by:
generateReportExcelin interfaceReport- Overrides:
generateReportExcelin classAbstractReport- Throws:
Exception
-
isExcelViewSupported
public boolean isExcelViewSupported()Description copied from class:AbstractReportBy default, reports do not have an Excel view.- Specified by:
isExcelViewSupportedin interfaceReport- Overrides:
isExcelViewSupportedin classAbstractReport
-
validate
Description copied from interface:ReportValidate the parameters passed to this report from the UI.Any errors should be added to the action errors.
- Specified by:
validatein interfaceReport- Overrides:
validatein classAbstractReport
-
getProjectVersionIds
Get a collection of all version ids in the selected project- Parameters:
project- project to get the version ids for- Returns:
- collection of version ids
-
getCompletionPercentage
public int getCompletionPercentage() -
getAccuracyPercentage
public int getAccuracyPercentage()
-