public class

WorkRatio

extends Object
java.lang.Object
   ↳ com.atlassian.jira.issue.worklog.WorkRatio

Summary

Public Constructors
WorkRatio()
Public Methods
static String getPaddedWorkRatio(GenericValue issue)
static String getPaddedWorkRatioString(String ratio)
static long getWorkRatio(Long originalEstimate, Long timespent)
Returns the work ratio as a whole number percentage, rounded down.
static long getWorkRatio(Issue issue)
static long getWorkRatio(GenericValue issue)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public WorkRatio ()

Public Methods

public static String getPaddedWorkRatio (GenericValue issue)

public static String getPaddedWorkRatioString (String ratio)

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 getPercentage(long)

Parameters
originalEstimate the original estimate of the issue
timespent the time spent on the issue
Returns
  • the work ratio percentage

public static long getWorkRatio (Issue issue)

public static long getWorkRatio (GenericValue issue)