Package com.atlassian.jira.issue.worklog
Class WorkRatio
java.lang.Object
com.atlassian.jira.issue.worklog.WorkRatio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetPaddedWorkRatio(org.ofbiz.core.entity.GenericValue issue) static StringgetPaddedWorkRatioString(String ratio) static longgetWorkRatio(Issue issue) static longgetWorkRatio(Long originalEstimate, Long timespent) Returns the work ratio as a whole number percentage, rounded down.static longgetWorkRatio(org.ofbiz.core.entity.GenericValue issue)
-
Constructor Details
-
WorkRatio
public WorkRatio()
-
-
Method Details
-
getWorkRatio
-
getWorkRatio
public static long getWorkRatio(org.ofbiz.core.entity.GenericValue issue) -
getWorkRatio
Returns the work ratio as a whole number percentage, rounded down. Note that we round down to be consistent withPercentageGraphModel.RowPercentageCalculator.getPercentage(long)- Parameters:
originalEstimate- the original estimate of the issuetimespent- the time spent on the issue- Returns:
- the work ratio percentage or the -1 if the work ratio does not exist for the issue
-
getPaddedWorkRatio
-
getPaddedWorkRatioString
-