public class

TimeTrackingImpl

extends AbstractFuncTestUtil
implements TimeTracking
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.AbstractFuncTestUtil
     ↳ com.atlassian.jira.functest.framework.admin.TimeTrackingImpl

Class Overview

Time tracking configuration

Summary

[Expand]
Inherited Constants
From interface com.atlassian.jira.functest.framework.admin.TimeTracking
[Expand]
Inherited Fields
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
Public Constructors
TimeTrackingImpl(WebTester tester, JIRAEnvironmentData environmentData)
Public Methods
void disable()

Disables Time Tracking

.
void disableCopyingOfComments()
Disables and re-enables time tracking with the "Copying of comments to work description" disabled.
void enable(String hoursPerDay, String daysPerWeek, String format, String defaultUnit, TimeTracking.Mode mode)

Activate time tracking with non-default options.

void enable(TimeTracking.Mode mode)

Activate time tracking with default options.

void enable(TimeTracking.Format format)

Activate time tracking with default options.

void enable(String hoursPerDay, String daysPerWeek, TimeTracking.Format format, TimeTracking.Unit defaultUnit, TimeTracking.Mode mode)

Activate time tracking with non-default options.

boolean isIn(TimeTracking.Mode mode)
Whether Time tracking is active in a specified mode.
void switchFormat(TimeTracking.Format format)
Short-hand for disabling and then enabling Time Tracking using the specified fromat.
void switchMode(TimeTracking.Mode mode)
Short-hand for disabling and then enabling Time Tracking into the specified mode.
Protected Methods
Navigation getNavigation()
[Expand]
Inherited Methods
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
From class java.lang.Object
From interface com.atlassian.jira.functest.framework.admin.TimeTracking
From interface com.atlassian.jira.testkit.client.log.FuncTestLogger

Public Constructors

public TimeTrackingImpl (WebTester tester, JIRAEnvironmentData environmentData)

Public Methods

public void disable ()

Disables Time Tracking

.

NOTE: You need to call this before enabling Time Tracking if it is already enabled.

public 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.

public 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).

public void enable (TimeTracking.Mode mode)

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.

public void enable (TimeTracking.Format format)

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.

public 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).

public boolean isIn (TimeTracking.Mode mode)

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.

public void switchFormat (TimeTracking.Format format)

Short-hand for disabling and then enabling Time Tracking using the specified fromat.

Parameters
format the fromat to enable.

public void switchMode (TimeTracking.Mode mode)

Short-hand for disabling and then enabling Time Tracking into the specified mode.

Parameters
mode the mode to enable.

Protected Methods

protected Navigation getNavigation ()