@Named public class DeveloperWorkloadReport extends AbstractReport
AbstractReport.MutableLong
descriptor
Constructor and Description |
---|
DeveloperWorkloadReport(ProjectManager projectManager,
ApplicationProperties applicationProperties,
UserManager userManager,
SearchService searchService,
ReportSubTaskFetcher reportSubTaskFetcher) |
Modifier and Type | Method and Description |
---|---|
String |
formatPrettyDuration(Number v)
this formatting function is shared by the full view for navigator as well as view issue.
|
String |
generateReportHtml(ProjectActionSupport action,
Map reqParams)
Generate the report's HTML - usually from the Velocity resource named "html".
|
String |
getProjectName(Long projectId) |
Long |
getTotalIssuesCount(Map<Long,AbstractReport.MutableLong> countMap) |
Long |
getTotalWorkload(Map<Long,AbstractReport.MutableLong> workloadMap) |
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.
|
generateReportExcel, getDescriptor, getIssueConstant, init, isExcelViewSupported
@Inject public DeveloperWorkloadReport(ProjectManager projectManager, ApplicationProperties applicationProperties, UserManager userManager, SearchService searchService, ReportSubTaskFetcher reportSubTaskFetcher)
public boolean showReport()
AbstractReport
showReport
in interface Report
showReport
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 String generateReportHtml(ProjectActionSupport action, Map reqParams) throws Exception
Report
Exception
public String formatPrettyDuration(Number v)
v
- duration in secondspublic Long getTotalIssuesCount(Map<Long,AbstractReport.MutableLong> countMap)
public Long getTotalWorkload(Map<Long,AbstractReport.MutableLong> workloadMap)
Copyright © 2002-2024 Atlassian. All Rights Reserved.