public class WorkRatio extends Object
Constructor and Description |
---|
WorkRatio() |
Modifier and Type | Method and Description |
---|---|
static String |
getPaddedWorkRatio(org.ofbiz.core.entity.GenericValue issue) |
static String |
getPaddedWorkRatioString(String ratio) |
static long |
getWorkRatio(org.ofbiz.core.entity.GenericValue issue) |
static long |
getWorkRatio(Issue issue) |
static long |
getWorkRatio(Long originalEstimate,
Long timespent)
Returns the work ratio as a whole number percentage, rounded down.
|
public static long getWorkRatio(Issue issue)
public static long getWorkRatio(org.ofbiz.core.entity.GenericValue issue)
public static long getWorkRatio(Long originalEstimate, Long timespent)
PercentageGraphModel.RowPercentageCalculator.getPercentage(long)
originalEstimate
- the original estimate of the issuetimespent
- the time spent on the issuepublic static String getPaddedWorkRatio(org.ofbiz.core.entity.GenericValue issue)
Copyright © 2002-2024 Atlassian. All Rights Reserved.