Interface TimeTrackingConfiguration
- All Known Implementing Classes:
TimeTrackingConfiguration.PropertiesAdaptor
public interface TimeTrackingConfiguration
- Since:
- 4.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Describes the modes of operation for Time Tracking in JIRA.static class
Implementation that is registered with PICO.static enum
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Should the comment entered on a transition screen be copied to the work description when logging work?boolean
enabled()
Is time tracking enabled?Get the currently configured number of days in a week.com.atlassian.core.util.DateUtils.Duration
Get the currently configured default duration to use when parsing duration string for time tracking.Get the currently configured number of hours in a day.getMode()
Get the configured format in which the time will be printed.
-
Method Details
-
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
-
getTimeFormat
TimeTrackingConfiguration.TimeFormat getTimeFormat()Get the configured format in which the time will be printed. -
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
-