Interface ServiceDeskCustomerRequestService
@ParametersAreNonnullByDefault
@ReturnValuesAreNonnullByDefault
@PublicApi
public interface ServiceDeskCustomerRequestService
Used to perform actions on
CustomerRequest
-
Method Summary
Modifier and TypeMethodDescriptioncreateCustomerRequest
(com.atlassian.jira.user.ApplicationUser user, CustomerRequestCreateParameters customerRequestCreateParameters) Create a customer request using the given parametergetCustomerRequest
(com.atlassian.jira.user.ApplicationUser user, CustomerRequestIssueQuery customerRequestIssueQuery) Retrieve aCustomerRequest
that matches the issueIDgetCustomerRequests
(com.atlassian.jira.user.ApplicationUser user, CustomerRequestQuery customerRequestQuery) Retrieve a page ofCustomerRequest
that satisfies the query parametersgetCustomerRequestStatus
(com.atlassian.jira.user.ApplicationUser user, CustomerRequestStatusQuery query) Retrieve a page ofCustomerRequest.CustomerRequestStatus
of aCustomerRequest
by chronological order in which the status transition taken placeCreate a builder to buildCustomerRequestCreateParameters
Get the builder to buildCustomerRequestIssueQuery
Get the builder to buildCustomerRequestQuery
Create a builder to buildCustomerRequestStatusQuery
Create a builder to buildCustomerRequestUpdateParameters
updateCustomerRequest
(com.atlassian.jira.user.ApplicationUser user, CustomerRequestUpdateParameters customerRequestUpdateParameters) Update theCustomerRequest
using the given parameters
-
Method Details
-
newCreateBuilder
CustomerRequestCreateParameters.Builder newCreateBuilder()Create a builder to buildCustomerRequestCreateParameters
-
createCustomerRequest
CustomerRequest createCustomerRequest(@Nullable com.atlassian.jira.user.ApplicationUser user, CustomerRequestCreateParameters customerRequestCreateParameters) Create a customer request using the given parameter- Parameters:
user
- the user exciting the requestcustomerRequestCreateParameters
- the request create parameter. Refer toRequestTypeFieldService.getCustomerRequestCreateMeta(ApplicationUser, RequestTypeFieldQuery)
on how to construct it- Returns:
- the
CustomerRequest
created - Throws:
ServiceDeskServiceException
- on error
-
newQueryBuilder
Get the builder to buildCustomerRequestQuery
-
newIssueQueryBuilder
Get the builder to buildCustomerRequestIssueQuery
-
getCustomerRequests
@Nonnull PagedResponse<CustomerRequest> getCustomerRequests(@Nullable com.atlassian.jira.user.ApplicationUser user, CustomerRequestQuery customerRequestQuery) Retrieve a page ofCustomerRequest
that satisfies the query parameters- Parameters:
user
- the user executing the requestscustomerRequestQuery
- the query parameter- Returns:
- a paged collection of
CustomerRequest
- Throws:
ServiceDeskServiceException
- on error
-
getCustomerRequest
CustomerRequest getCustomerRequest(@Nullable com.atlassian.jira.user.ApplicationUser user, CustomerRequestIssueQuery customerRequestIssueQuery) Retrieve aCustomerRequest
that matches the issueID- Parameters:
user
- the user executing the requestscustomerRequestIssueQuery
- the query parameter- Returns:
- the
CustomerRequest
- Throws:
ServiceDeskServiceException
- on error
-
newUpdateBuilder
Create a builder to buildCustomerRequestUpdateParameters
-
updateCustomerRequest
@Nonnull CustomerRequest updateCustomerRequest(@Nullable com.atlassian.jira.user.ApplicationUser user, @Nonnull CustomerRequestUpdateParameters customerRequestUpdateParameters) Update theCustomerRequest
using the given parameters- Parameters:
user
- the user executing the requestcustomerRequestUpdateParameters
- parameters to update the customer request- Returns:
- the updated
CustomerRequest
- Throws:
ServiceDeskServiceException
- on error
-
newStatusQueryBuilder
CustomerRequestStatusQuery.Builder newStatusQueryBuilder()Create a builder to buildCustomerRequestStatusQuery
-
getCustomerRequestStatus
@Nonnull PagedResponse<CustomerRequest.CustomerRequestStatus> getCustomerRequestStatus(@Nullable com.atlassian.jira.user.ApplicationUser user, CustomerRequestStatusQuery query) Retrieve a page ofCustomerRequest.CustomerRequestStatus
of aCustomerRequest
by chronological order in which the status transition taken place- Parameters:
user
- the user executing the queryquery
- the request status query- Returns:
- a paged collection of
CustomerRequest.CustomerRequestStatus
- Throws:
ServiceDeskServiceException
- on error
-