com.atlassian.jira.issue.fields
Class AggregateTimeSpentSystemField

java.lang.Object
  extended by com.atlassian.jira.issue.fields.AbstractField
      extended by com.atlassian.jira.issue.fields.NavigableFieldImpl
          extended by com.atlassian.jira.issue.fields.AbstractDurationSystemField
              extended by com.atlassian.jira.issue.fields.AbstractAggregateDurationSystemField
                  extended by com.atlassian.jira.issue.fields.AggregateTimeSpentSystemField
All Implemented Interfaces:
Field, NavigableField, RestAwareField, Comparable

public class AggregateTimeSpentSystemField
extends AbstractAggregateDurationSystemField

System field that displays the calculated aggregate time spent. This adds all sub-tasks values to its own values.

Since:
v3.11

Field Summary
 
Fields inherited from class com.atlassian.jira.issue.fields.AbstractAggregateDurationSystemField
calculatorFactory
 
Fields inherited from class com.atlassian.jira.issue.fields.NavigableFieldImpl
applicationProperties, templatingEngine
 
Fields inherited from class com.atlassian.jira.issue.fields.AbstractField
authenticationContext
 
Fields inherited from interface com.atlassian.jira.issue.fields.NavigableField
ORDER_ASCENDING, ORDER_DESCENDING, TEMPLATE_DIRECTORY_PATH
 
Constructor Summary
AggregateTimeSpentSystemField(VelocityTemplatingEngine templatingEngine, ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext, AggregateTimeTrackingCalculatorFactory calculatorFactory)
           
 
Method Summary
protected  Long getAggregateDuration(AggregateTimeTrackingBean bean)
          Returns the time spent of the passed bean
 
Methods inherited from class com.atlassian.jira.issue.fields.AbstractAggregateDurationSystemField
getDuration, getSorter
 
Methods inherited from class com.atlassian.jira.issue.fields.AbstractDurationSystemField
getColumnViewHtml, getFieldTypeInfo, getJsonFromIssue, getJsonSchema, prettyPrintChangeHistory, prettyPrintChangeHistory
 
Methods inherited from class com.atlassian.jira.issue.fields.NavigableFieldImpl
getApplicationProperties, getColumnCssClass, getColumnHeadingKey, getDefaultSortOrder, getHiddenFieldId, getSortComparatorSource, getSortFields, getVelocityParams, renderTemplate
 
Methods inherited from class com.atlassian.jira.issue.fields.AbstractField
compareTo, equals, getAuthenticationContext, getId, getName, getNameKey, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.issue.fields.Field
getId, getName, getNameKey
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

AggregateTimeSpentSystemField

public AggregateTimeSpentSystemField(VelocityTemplatingEngine templatingEngine,
                                     ApplicationProperties applicationProperties,
                                     JiraAuthenticationContext authenticationContext,
                                     AggregateTimeTrackingCalculatorFactory calculatorFactory)
Method Detail

getAggregateDuration

protected Long getAggregateDuration(AggregateTimeTrackingBean bean)
Returns the time spent of the passed bean

Specified by:
getAggregateDuration in class AbstractAggregateDurationSystemField
Parameters:
bean - bean to get the aggregate duration from
Returns:
aggregate duration


Copyright © 2002-2013 Atlassian. All Rights Reserved.