public class

TimeTrackingReport

extends AbstractReport
java.lang.Object
   ↳ com.atlassian.jira.plugin.report.impl.AbstractReport
     ↳ com.atlassian.jira.plugin.report.impl.TimeTrackingReport

Summary

Nested Classes
class TimeTrackingReport.Totals  
[Expand]
Inherited Fields
From class com.atlassian.jira.plugin.report.impl.AbstractReport
Public Constructors
TimeTrackingReport(VersionManager versionManager, ApplicationProperties applicationProperties, ConstantsManager constantsManager, JiraDurationUtils jiraDurationUtils, SearchProvider searchProvider, BuildUtilsInfo buildUtilsInfo, ReportSubTaskFetcher reportSubTaskFetcher, SubTaskManager subTaskManager)
Public Methods
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)
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.
[Expand]
Inherited Methods
From class com.atlassian.jira.plugin.report.impl.AbstractReport
From class java.lang.Object
From interface com.atlassian.jira.plugin.report.Report

Public Constructors

public TimeTrackingReport (VersionManager versionManager, ApplicationProperties applicationProperties, ConstantsManager constantsManager, JiraDurationUtils jiraDurationUtils, SearchProvider searchProvider, BuildUtilsInfo buildUtilsInfo, ReportSubTaskFetcher reportSubTaskFetcher, SubTaskManager subTaskManager)

Public Methods

public String generateReportExcel (ProjectActionSupport action, Map reqParams)

By default, will throw an UnsuppportedOperationException as reports don't support Excel by default.

Throws
Exception

public String generateReportHtml (ProjectActionSupport action, Map reqParams)

Throws
Exception

public int getAccuracyPercentage ()

public int getCompletionPercentage ()

public Collection<String> getProjectVersionIds (Project project)

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

public boolean isExcelViewSupported ()

By default, reports do not have an Excel view.

public boolean showReport ()

Whether or not to show this report in the interface. The default is "true".

public void validate (ProjectActionSupport action, Map params)

Validate the parameters passed to this report from the UI.

Any errors should be added to the action errors.