public static interface

TimeTrackingSystemField.TimeTrackingValue

com.atlassian.jira.issue.fields.TimeTrackingSystemField.TimeTrackingValue

Class Overview

This interface is used as a value object for TimeTracking information.

It lurks around inside the field values holder maps while JIRA does its thang. It's referenced by the velocity views and also by the TimeTrackingSystemField itself.

While the class is PUBLIC, it is only so that the Velocity template can get to it. Please do not consider this part of the JIRA API. It's for the TimeTrackingSystemField only. You have been warned :)

It exists so that we can cater for the 2 modes that this field can work in since 4.2.

Summary

Nested Classes
class TimeTrackingSystemField.TimeTrackingValue.Builder  
Public Methods
Long getEstimate()
String getEstimateDisplayValue()
Long getOriginalEstimate()
String getOriginalEstimateDisplayValue()
Long getRemainingEstimate()
String getRemainingEstimateDisplayValue()
String getTargetSubField()
This exists to allow one bit of JIRA code UpdateIssueFieldFunction which is a workflow post function to set 1 specific sub field value.
boolean isCreateIssue()
boolean isInLegacyMode()
This allows the input to drive what mode we work in.
boolean isLogWorkActivated()
Signifies if we will be ignoring the Remaining Estimate from the input parameters as a result of the Log Work form being activated.

Public Methods

public Long getEstimate ()

public String getEstimateDisplayValue ()

public Long getOriginalEstimate ()

public String getOriginalEstimateDisplayValue ()

public Long getRemainingEstimate ()

public String getRemainingEstimateDisplayValue ()

public String getTargetSubField ()

This exists to allow one bit of JIRA code UpdateIssueFieldFunction which is a workflow post function to set 1 specific sub field value. This allows us to work in modern mode but still only set one value.

Returns
  • either null or TIMETRACKING_ORIGINALESTIMATE or TIMETRACKING_REMAININGESTIMATE

public boolean isCreateIssue ()

public boolean isInLegacyMode ()

This allows the input to drive what mode we work in. This is their to allows old SOAP clients to work, in that they may only provide 1 value even if the system as the new mode turned on.

Returns
  • true if the values in the time tracking value object need to be treated in the mode legacy mode

public boolean isLogWorkActivated ()

Signifies if we will be ignoring the Remaining Estimate from the input parameters as a result of the Log Work form being activated. The checkbox is only ever rendered when both TimeTracking and Worklog system fields are rendered on the same screen.

Returns
  • true if the "Log Work" checkbox from the WorklogSystemField was checked.