Package com.atlassian.servicedesk.api
Interface ServiceDeskManager
@PublicApi
@ParametersAreNonnullByDefault
@ReturnValuesAreNonnullByDefault
public interface ServiceDeskManager
Provides access to
ServiceDesk
objects without permission checks.
It is intended this should only be required when performing administrative tasks where you need access regardless
of permissions or without a user. Usually the ServiceDeskService
should be preferred.
-
Method Summary
Modifier and TypeMethodDescriptiongetServiceDeskById
(int serviceDeskId) Retrieve aServiceDesk
by its IDgetServiceDeskForPortal
(Portal portal) Returns theServiceDesk
associated with the givenPortal
getServiceDeskForProject
(com.atlassian.jira.project.Project project) Returns theServiceDesk
associated with the givenProject
-
Method Details
-
getServiceDeskForProject
Returns theServiceDesk
associated with the givenProject
- Parameters:
project
- the project to search by.- Returns:
ServiceDesk
associated with the givenProject
- Throws:
ServiceDeskServiceException
- on error if a service project was disabled or not found
-
getServiceDeskById
Retrieve aServiceDesk
by its ID- Parameters:
serviceDeskId
- the service project ID- Returns:
- the requested
ServiceDesk
- Throws:
ServiceDeskServiceException
- on error- Since:
- v3.7.0
-
getServiceDeskForPortal
Returns theServiceDesk
associated with the givenPortal
- Parameters:
portal
- the portal to search by.- Returns:
ServiceDesk
associated with the givenPortal
- Throws:
ServiceDeskServiceException
- on error if a service project was disabled or not found- Since:
- v3.7.0
-