@Named public class TimeTrackingReport extends AbstractReport
Modifier and Type | Class and Description |
---|---|
class |
TimeTrackingReport.Totals |
AbstractReport.MutableLong
descriptor
Constructor and Description |
---|
TimeTrackingReport(VersionManager versionManager,
ApplicationProperties applicationProperties,
ConstantsManager constantsManager,
SearchService searchService,
BuildUtilsInfo buildUtilsInfo,
ReportSubTaskFetcher reportSubTaskFetcher,
SubTaskManager subTaskManager) |
Modifier and Type | Method and Description |
---|---|
String |
generateReportExcel(ProjectActionSupport action,
Map reqParams)
By default, will throw an UnsuppportedOperationException as reports don't support Excel by default.
|
String |
generateReportHtml(ProjectActionSupport action,
Map reqParams)
Generate the report's HTML - usually from the Velocity resource named "html".
|
int |
getAccuracyPercentage() |
int |
getCompletionPercentage() |
Collection<String> |
getProjectVersionIds(Project project)
Get a collection of all version ids in the selected project
|
boolean |
isExcelViewSupported()
By default, reports do not have an Excel view.
|
boolean |
showReport()
Whether or not to show this report in the interface.
|
void |
validate(ProjectActionSupport action,
Map params)
Validate the parameters passed to this report from the UI.
|
getDescriptor, getIssueConstant, init
@Inject public TimeTrackingReport(VersionManager versionManager, ApplicationProperties applicationProperties, ConstantsManager constantsManager, SearchService searchService, BuildUtilsInfo buildUtilsInfo, ReportSubTaskFetcher reportSubTaskFetcher, SubTaskManager subTaskManager)
public boolean showReport()
AbstractReport
showReport
in interface Report
showReport
in class AbstractReport
public String generateReportHtml(ProjectActionSupport action, Map reqParams) throws Exception
Report
Exception
public String generateReportExcel(ProjectActionSupport action, Map reqParams) throws Exception
AbstractReport
generateReportExcel
in interface Report
generateReportExcel
in class AbstractReport
Exception
public boolean isExcelViewSupported()
AbstractReport
isExcelViewSupported
in interface Report
isExcelViewSupported
in class AbstractReport
public void validate(ProjectActionSupport action, Map params)
Report
Any errors should be added to the action errors.
validate
in interface Report
validate
in class AbstractReport
public Collection<String> getProjectVersionIds(Project project)
project
- project to get the version ids forpublic int getCompletionPercentage()
public int getAccuracyPercentage()
Copyright © 2002-2024 Atlassian. All Rights Reserved.