Class WorkRatio

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

public class WorkRatio extends Object
  • Constructor Details

    • WorkRatio

      public WorkRatio()
  • Method Details

    • 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 issue
      timespent - 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

      public static String getPaddedWorkRatio(org.ofbiz.core.entity.GenericValue issue)
    • getPaddedWorkRatioString

      public static String getPaddedWorkRatioString(String ratio)