com.atlassian.jira.bc.issue.worklog
Interface TimeTrackingConfiguration

All Known Implementing Classes:
TimeTrackingConfiguration.PropertiesAdaptor

public interface TimeTrackingConfiguration

Since:
4.0

Nested Class Summary
static class TimeTrackingConfiguration.Mode
          Describes the modes of operation for Time Tracking in JIRA.
static class TimeTrackingConfiguration.PropertiesAdaptor
          Implementation that is registered with PICO.
 
Method Summary
 boolean copyCommentToWorkDescriptionOnTransition()
          Should the comment entered on a transition screen be copied to the work description when logging work?
 boolean enabled()
          Is time tracking enabled?
 BigDecimal getDaysPerWeek()
          Get the currently configured number of days in a week.
 com.atlassian.core.util.DateUtils.Duration getDefaultUnit()
          Get the currently configured default duration to use when parsing duration string for time tracking.
 BigDecimal getHoursPerDay()
          Get the currently configured number of hours in a day.
 TimeTrackingConfiguration.Mode getMode()
           
 

Method Detail

enabled

boolean enabled()
Is time tracking enabled?

Returns:
true if time tracking is enabled

getMode

TimeTrackingConfiguration.Mode getMode()
Returns:
the current mode of operation
Since:
v4.2

getDefaultUnit

com.atlassian.core.util.DateUtils.Duration getDefaultUnit()
Get the currently configured default duration to use when parsing duration string for time tracking. (i.e. does "3" mean three minutes or three hours or three days)

Returns:
default duration

getHoursPerDay

BigDecimal getHoursPerDay()
Get the currently configured number of hours in a day. Because this can be a non-integral number we return a BigDecimal.

Returns:
the number of hours in a working day

getDaysPerWeek

BigDecimal getDaysPerWeek()
Get the currently configured number of days in a week. Because this can be a non-integral number we return a BigDecimal

Returns:
the number of days in a working week

copyCommentToWorkDescriptionOnTransition

boolean copyCommentToWorkDescriptionOnTransition()
Should the comment entered on a transition screen be copied to the work description when logging work?

Returns:
true or false
Since:
v4.2


Copyright © 2002-2013 Atlassian. All Rights Reserved.