public class AggregateTimeTrackingBean extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AGG_TIMETRACKING |
Constructor and Description |
---|
AggregateTimeTrackingBean(Long originalEstimate,
Long remainingEstimate,
Long timeSpent,
int subtaskCount) |
Modifier and Type | Method and Description |
---|---|
static Long |
addAndPreserveNull(Long estValue,
Long origValue)
Method to calculate the addition of two Longs, while preserving null if they are both null.
|
void |
bumpGreatestSubTaskEstimate(Long originalEstimate,
Long remainingEstimate,
Long timeSpent)
When this is called, the current values of the bean are used to work out the the greatest sub task estimate.
|
Long |
getGreastestSubTaskEstimate()
This property is used to track the largest sub task estimate encountered so far.
|
Long |
getOriginalEstimate() |
Long |
getRemainingEstimate() |
int |
getSubTaskCount() |
static Long |
getTheGreaterOfEstimates(Long originalEstimate,
Long remainingEstimate,
Long timeSpent)
Finds the greater of the original estimate OR the remaining estimate plus the time spent.
|
Long |
getTimeSpent() |
void |
setGreastestSubTaskEstimate(Long greastestSubTaskEstimate) |
void |
setOriginalEstimate(Long originalEstimate) |
void |
setRemainingEstimate(Long remainingEstimate) |
void |
setSubTaskCount(int subtaskCount) |
void |
setTimeSpent(Long timeSpent) |
public static final String AGG_TIMETRACKING
public Long getTimeSpent()
public void setTimeSpent(Long timeSpent)
public Long getOriginalEstimate()
public void setOriginalEstimate(Long originalEstimate)
public Long getRemainingEstimate()
public void setRemainingEstimate(Long remainingEstimate)
public int getSubTaskCount()
public void setSubTaskCount(int subtaskCount)
public Long getGreastestSubTaskEstimate()
public void setGreastestSubTaskEstimate(Long greastestSubTaskEstimate)
public void bumpGreatestSubTaskEstimate(Long originalEstimate, Long remainingEstimate, Long timeSpent)
originalEstimate
- an issue's original estimateremainingEstimate
- an issue's remaining estimatetimeSpent
- an issue time spentpublic static Long getTheGreaterOfEstimates(Long originalEstimate, Long remainingEstimate, Long timeSpent)
originalEstimate
- original estimateremainingEstimate
- remaining estimatetimeSpent
- the time spentpublic static Long addAndPreserveNull(Long estValue, Long origValue)
estValue
- value from issueorigValue
- value from beanCopyright © 2002-2019 Atlassian. All Rights Reserved.