Package com.atlassian.servicedesk.api
Interface ServiceDeskService
@PublicApi
@ParametersAreNonnullByDefault
@ReturnValuesAreNonnullByDefault
public interface ServiceDeskService
Provides access to
ServiceDesk objects-
Method Summary
Modifier and TypeMethodDescriptiongetServiceDeskById(com.atlassian.jira.user.ApplicationUser user, int serviceDeskId) Retrieve aServiceDeskby its IDgetServiceDeskForPortal(com.atlassian.jira.user.ApplicationUser user, Portal portal) Returns theServiceDeskassociated with the givenPortalgetServiceDeskForProject(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project) Returns theServiceDeskassociated with the givenProjectgetServiceDesks(com.atlassian.jira.user.ApplicationUser user, boolean includeArchived, PagedRequest pagedRequest) Returns a list of service projects a user can view, with an option to include archived service projects.default PagedResponse<ServiceDesk>getServiceDesks(com.atlassian.jira.user.ApplicationUser user, PagedRequest pagedRequest) Returns a list of service projects a user can view.
-
Method Details
-
getServiceDeskForProject
ServiceDesk getServiceDeskForProject(com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.project.Project project) Returns theServiceDeskassociated with the givenProject- Parameters:
user- the user requesting the service projectproject- the project to search by- Returns:
ServiceDeskassociated with the givenProject- Throws:
ServiceDeskServiceException- on errorNoSuchEntityException- on error if a service project was disabled or not found
-
getServiceDeskById
Retrieve aServiceDeskby its ID- Parameters:
user- the user executing the requestserviceDeskId- the service project ID- Returns:
- the requested
ServiceDesk - Throws:
ServiceDeskServiceException- on error
-
getServiceDesks
default PagedResponse<ServiceDesk> getServiceDesks(com.atlassian.jira.user.ApplicationUser user, PagedRequest pagedRequest) Returns a list of service projects a user can view. This does not include archived service projects.- Parameters:
user- the user executing the requestpagedRequest- the paging to be applied to the output- Returns:
- a paged response of
ServiceDesk - Throws:
ServiceDeskServiceException- on error
-
getServiceDesks
PagedResponse<ServiceDesk> getServiceDesks(com.atlassian.jira.user.ApplicationUser user, boolean includeArchived, PagedRequest pagedRequest) Returns a list of service projects a user can view, with an option to include archived service projects.- Parameters:
user- the user executing the requestincludeArchived- determines whether archived service projects are included; this is false by defaultpagedRequest- the paging to be applied to the output- Returns:
- a paged response of
ServiceDesk - Throws:
ServiceDeskServiceException- on error
-
getServiceDeskForPortal
Returns theServiceDeskassociated with the givenPortal- Parameters:
user- the user requesting the service projectportal- the portal to search by- Returns:
ServiceDeskassociated with the givenPortal- Throws:
ServiceDeskServiceException- on errorNoSuchEntityException- on error if a service project was disabled or not found- Since:
- v3.7.0
-