Interface TimeMetricService


@PublicApi public interface TimeMetricService
Provides methods to query about TimeMetric objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    getTimeMetric(com.atlassian.jira.user.ApplicationUser user, ServiceDesk serviceDesk, int metricId)
    Returns a time metric within a service project given its id
    getTimeMetrics(com.atlassian.jira.user.ApplicationUser user, ServiceDesk serviceDesk)
    Returns all the time metrics defined for a service project
  • Method Details

    • getTimeMetrics

      Collection<TimeMetric> getTimeMetrics(com.atlassian.jira.user.ApplicationUser user, ServiceDesk serviceDesk)
      Returns all the time metrics defined for a service project
      Parameters:
      user - the user querying the service project
      serviceDesk - the service project to find time metrics for
      Returns:
      all the time metrics defined for a service project
      Throws:
      ServiceDeskServiceException - on error
    • getTimeMetric

      TimeMetric getTimeMetric(com.atlassian.jira.user.ApplicationUser user, ServiceDesk serviceDesk, int metricId)
      Returns a time metric within a service project given its id
      Parameters:
      user - the user querying the service project
      serviceDesk - the service project to find time metric for
      metricId - the time metric id
      Returns:
      the time metric if found
      Throws:
      ServiceDeskServiceException - on error