Interface SlaInformationService.DurationFormatter

Enclosing interface:
SlaInformationService

@PublicApi public static interface SlaInformationService.DurationFormatter
This allows you to format SLA durations into friendly String versions
  • Method Summary

    Modifier and Type
    Method
    Description
    format(com.atlassian.jira.user.ApplicationUser user, long durationMS)
    Formats the duration into a friendly format
    formatShort(com.atlassian.jira.user.ApplicationUser user, long durationMS)
    Formats the duration into a short friendly format
  • Method Details

    • format

      String format(com.atlassian.jira.user.ApplicationUser user, long durationMS)
      Formats the duration into a friendly format
      Parameters:
      user - the user in play
      durationMS - the duration in milliseconds to format
      Returns:
      a friendly formatted string
    • formatShort

      String formatShort(com.atlassian.jira.user.ApplicationUser user, long durationMS)
      Formats the duration into a short friendly format
      Parameters:
      user - the user in play
      durationMS - the duration in milliseconds to format
      Returns:
      a short friendly formatted string