Interface TimeMetricService
@PublicApi
public interface TimeMetricService
Provides methods to query about
TimeMetric
objects.-
Method Summary
Modifier and TypeMethodDescriptiongetTimeMetric
(com.atlassian.jira.user.ApplicationUser user, ServiceDesk serviceDesk, int metricId) Returns a time metric within a service project given its idgetTimeMetrics
(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 projectserviceDesk
- 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 projectserviceDesk
- the service project to find time metric formetricId
- the time metric id- Returns:
- the time metric if found
- Throws:
ServiceDeskServiceException
- on error
-