com.atlassian.jira.issue.worklog
Class WorkRatio
java.lang.Object
com.atlassian.jira.issue.worklog.WorkRatio
public class WorkRatio
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkRatio
public WorkRatio()
getWorkRatio
public static long getWorkRatio(Issue issue)
getWorkRatio
public static long getWorkRatio(org.ofbiz.core.entity.GenericValue issue)
getWorkRatio
public static long getWorkRatio(Long originalEstimate,
Long timespent)
- Returns the work ratio as a whole number percentage, rounded down.
Note that we round down to be consistent with
PercentageGraphModel.RowPercentageCalculator.getPercentage(long)
- Parameters:
originalEstimate
- the original estimate of the issuetimespent
- the time spent on the issue
- Returns:
- the work ratio percentage
getPaddedWorkRatio
public static String getPaddedWorkRatio(org.ofbiz.core.entity.GenericValue issue)
getPaddedWorkRatioString
public static String getPaddedWorkRatioString(String ratio)
Copyright © 2002-2011 Atlassian. All Rights Reserved.