Interface TimeTracking
- All Known Implementing Classes:
TimeTrackingImpl
public interface TimeTracking
Time tracking configuration in JIRA's Administration interface.
- Since:
- v4.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumRepresents the "format" which Time Tracking information can be displayed in.static enumRepresents a "mode" in which the Time Tracking module operates.static enumRepresnts the default unit to use for time tracking. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Disables Time TrackingvoidDisables and re-enables time tracking with the "Copying of comments to work description" disabled.voidenable(TimeTracking.Format format) Activate time tracking with default options.voidenable(TimeTracking.Mode mode) Activate time tracking with default options.voidenable(String hoursPerDay, String daysPerWeek, TimeTracking.Format format, TimeTracking.Unit defaultUnit, TimeTracking.Mode mode) Activate time tracking with non-default options.voidenable(String hoursPerDay, String daysPerWeek, String format, String defaultUnit, TimeTracking.Mode mode) Activate time tracking with non-default options.booleanisIn(TimeTracking.Mode mode) Whether Time tracking is active in a specified mode.voidswitchFormat(TimeTracking.Format format) Short-hand for disabling and then enabling Time Tracking using the specified fromat.voidswitchMode(TimeTracking.Mode mode) Short-hand for disabling and then enabling Time Tracking into the specified mode.
-
Field Details
-
TIME_TRACKING_ADMIN_PAGE
- See Also:
-
-
Method Details
-
enable
Activate time tracking with default options.
NOTE: You need to call
disable()if Time Tracking is already enabled.- Parameters:
mode- The time tracking mode to be set.
-
switchMode
Short-hand for disabling and then enabling Time Tracking into the specified mode.- Parameters:
mode- the mode to enable.
-
enable
Activate time tracking with default options.
NOTE: You need to call
disable()if Time Tracking is already enabled.- Parameters:
format- The time tracking format to be set.
-
disable
void disable()Disables Time Tracking
.NOTE: You need to call this before enabling Time Tracking if it is already enabled.
-
enable
void enable(String hoursPerDay, String daysPerWeek, String format, String defaultUnit, TimeTracking.Mode mode) Activate time tracking with non-default options.
NOTE: You need to call
disable()if Time Tracking is already enabled.- Parameters:
hoursPerDay- the number of hours in a day. specified as a string so you can use "5.5"daysPerWeek- the number of days in a week. specified as a string so you can use "3.5"format- the display format used ("pretty", "days", "hours")defaultUnit- default unit for time tracking entry ("minute", "hour", "day", "week")mode- The time tracking mode to be set. It can be MODERN (original estimate and remaining estimate can be edited independently), and LEGACY (original estimate can only be edited before logging work and after that you can only edit the remaining estimate).
-
enable
void enable(String hoursPerDay, String daysPerWeek, TimeTracking.Format format, TimeTracking.Unit defaultUnit, TimeTracking.Mode mode) Activate time tracking with non-default options.
NOTE: You need to call
disable()if Time Tracking is already enabled.- Parameters:
hoursPerDay- the number of hours in a day. specified as a string so you can use "5.5"daysPerWeek- the number of days in a week. specified as a string so you can use "3.5"format- the display format used ("pretty", "days", "hours")defaultUnit- default unit for time tracking entry ("minute", "hour", "day", "week")mode- The time tracking mode to be set. It can be MODERN (original estimate and remaining estimate can be edited independently), and LEGACY (original estimate can only be edited before logging work and after that you can only edit the remaining estimate).
-
isIn
Whether Time tracking is active in a specified mode.NOTE: If time tracking is disabled this method will return false.
- Parameters:
mode- The mode to check.- Returns:
- true if time tracking is on in the specified mode; otherwise, it returns false.
-
disableCopyingOfComments
void disableCopyingOfComments()Disables and re-enables time tracking with the "Copying of comments to work description" disabled. This will mean that when logging work on transition, the comment input will only be used for comments and not work descriptions.- Since:
- v4.2
-
switchFormat
Short-hand for disabling and then enabling Time Tracking using the specified fromat.- Parameters:
format- the fromat to enable.
-