@ParametersAreNonnullByDefault @ExperimentalApi public interface ServiceDeskCustomerRequestService
CustomerRequest
Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> |
createCustomerRequest(com.atlassian.jira.user.ApplicationUser user,
CustomerRequestCreateParameters customerRequestCreateParameters)
Create a customer request using the given parameter
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<CustomerRequest>> |
getCustomerRequests(com.atlassian.jira.user.ApplicationUser user,
CustomerRequestQuery customerRequestQuery)
Retrieve a page of
CustomerRequest that satisfies the query parameters |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<CustomerRequest.CustomerRequestStatus>> |
getCustomerRequestStatus(com.atlassian.jira.user.ApplicationUser user,
CustomerRequestStatusQuery query)
Retrieve a page of
CustomerRequest.CustomerRequestStatus of a CustomerRequest by chronological order in which the status transition taken place |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> |
getRequestForIssue(com.atlassian.jira.user.ApplicationUser user,
com.atlassian.jira.issue.Issue issue)
Deprecated.
use
getCustomerRequests(ApplicationUser, CustomerRequestQuery) instead
Retrieves a CustomerRequest that is associated with the given issue |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> |
getRequestForIssueOverrideSecurity(com.atlassian.jira.issue.Issue issue)
Deprecated.
use
getCustomerRequests(ApplicationUser, CustomerRequestQuery) instead
Retrieves a CustomerRequest that is associated with the given issue
ignoring all security constraints.
You should not use this method normally, use getRequestForIssue(ApplicationUser, Issue)
instead, this should only be used when performing administrative tasks where you need access to a request regardless of permissions or without a user. |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> |
getRequestForKey(com.atlassian.jira.user.ApplicationUser user,
String issueKey)
Deprecated.
use
getCustomerRequests(ApplicationUser, CustomerRequestQuery) instead
Retrieves a CustomerRequest that is associated with the given issue key |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> |
getRequestForKeyOverrideSecurity(String issueKey)
Deprecated.
user
getCustomerRequests(ApplicationUser, CustomerRequestQuery) instead
Retrieves a CustomerRequest that is associated with the given issue key
ignoring all security constraints.
You should not use this method normally, use getRequestForKey(ApplicationUser, java.lang.String)
instead, this should only be used when performing administrative tasks where you need access to a request regardless of permissions or without a user. |
CustomerRequestCreateParameters.Builder |
newCreateBuilder()
Create a builder to build
CustomerRequestCreateParameters |
CustomerRequestQuery.Builder |
newQueryBuilder()
Get the builder to build
CustomerRequestQuery |
CustomerRequestStatusQuery.Builder |
newStatusQueryBuilder()
Create a builder to build
CustomerRequestStatusQuery |
CustomerRequestUpdateParameters.Builder |
newUpdateBuilder()
Create a builder to build
CustomerRequestUpdateParameters |
RequestTypeUpdateParameters.Builder |
requestTypeUpdateParametersBuilder()
Deprecated.
use
newUpdateBuilder() instead
Get the builder to build RequestTypeUpdateParameters |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> |
updateCustomerRequest(com.atlassian.jira.user.ApplicationUser user,
CustomerRequestUpdateParameters customerRequestUpdateParameters)
Update the
CustomerRequest using the given parameters |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> |
updateRequestType(com.atlassian.jira.user.ApplicationUser user,
RequestTypeUpdateParameters requestTypeUpdateParameters)
Deprecated.
use
updateCustomerRequest(ApplicationUser, CustomerRequestUpdateParameters) instead
Update the RequestType of the CustomerRequest |
CustomerRequestCreateParameters.Builder newCreateBuilder()
CustomerRequestCreateParameters
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> createCustomerRequest(@Nullable com.atlassian.jira.user.ApplicationUser user, CustomerRequestCreateParameters customerRequestCreateParameters)
user
- the user exciting the requestcustomerRequestCreateParameters
- the request create parameter. Refer to RequestTypeFieldService.getCustomerRequestCreateMeta(ApplicationUser, RequestTypeFieldQuery)
on how to construct it@Nonnull CustomerRequestQuery.Builder newQueryBuilder()
CustomerRequestQuery
@Nonnull com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<CustomerRequest>> getCustomerRequests(@Nullable com.atlassian.jira.user.ApplicationUser user, CustomerRequestQuery customerRequestQuery)
CustomerRequest
that satisfies the query parametersuser
- the user executing the requestscustomerRequestQuery
- the query parameterCustomerRequest
if successful retrieval, or AnError
if failure@Nonnull CustomerRequestUpdateParameters.Builder newUpdateBuilder()
CustomerRequestUpdateParameters
@Nonnull com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> updateCustomerRequest(@Nullable com.atlassian.jira.user.ApplicationUser user, @Nonnull CustomerRequestUpdateParameters customerRequestUpdateParameters)
CustomerRequest
using the given parametersuser
- the user executing the requestcustomerRequestUpdateParameters
- parameters to update the customer requestCustomerRequest
if succeeded, or AnError
if update failure@Deprecated @Nonnull com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> getRequestForKey(@Nullable com.atlassian.jira.user.ApplicationUser user, @Nonnull String issueKey)
getCustomerRequests(ApplicationUser, CustomerRequestQuery)
instead
Retrieves a CustomerRequest
that is associated with the given issue keyissueKey
- the key that identifies the service desk CustomerRequest
CustomerRequest
that is associated with the given issue key@Deprecated @Nonnull com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> getRequestForIssue(@Nullable com.atlassian.jira.user.ApplicationUser user, @Nonnull com.atlassian.jira.issue.Issue issue)
getCustomerRequests(ApplicationUser, CustomerRequestQuery)
instead
Retrieves a CustomerRequest
that is associated with the given issueissue
- the issue linked to the service desk CustomerRequest
CustomerRequest
that is associated with the given issue@Deprecated RequestTypeUpdateParameters.Builder requestTypeUpdateParametersBuilder()
newUpdateBuilder()
instead
Get the builder to build RequestTypeUpdateParameters
@Nonnull @Deprecated com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> updateRequestType(@Nullable com.atlassian.jira.user.ApplicationUser user, RequestTypeUpdateParameters requestTypeUpdateParameters)
updateCustomerRequest(ApplicationUser, CustomerRequestUpdateParameters)
instead
Update the RequestType
of the CustomerRequest
user
- the user in the associated context that perform the actionrequestTypeUpdateParameters
- the parameters to update RequestType
of the CustomerRequest
CustomerRequest
@Nonnull @Deprecated com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> getRequestForIssueOverrideSecurity(com.atlassian.jira.issue.Issue issue)
getCustomerRequests(ApplicationUser, CustomerRequestQuery)
instead
Retrieves a CustomerRequest
that is associated with the given issue
ignoring all security constraints.
You should not use this method normally, use getRequestForIssue(ApplicationUser, Issue)
instead, this should only be used when performing administrative tasks where you need access to a request regardless of permissions or without a user.issue
- the issue linked to the CustomerRequest
CustomerRequest
that is associated with the given issue@Nonnull @Deprecated com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> getRequestForKeyOverrideSecurity(String issueKey)
getCustomerRequests(ApplicationUser, CustomerRequestQuery)
instead
Retrieves a CustomerRequest
that is associated with the given issue key
ignoring all security constraints.
You should not use this method normally, use getRequestForKey(ApplicationUser, java.lang.String)
instead, this should only be used when performing administrative tasks where you need access to a request regardless of permissions or without a user.issueKey
- the issue key of the issue linked to the CustomerRequest
CustomerRequest
that is associated with the given issue keyCustomerRequestStatusQuery.Builder newStatusQueryBuilder()
CustomerRequestStatusQuery
@Nonnull com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<CustomerRequest.CustomerRequestStatus>> getCustomerRequestStatus(@Nullable com.atlassian.jira.user.ApplicationUser user, CustomerRequestStatusQuery query)
CustomerRequest.CustomerRequestStatus
of a CustomerRequest
by chronological order in which the status transition taken placeuser
- the user executing the queryquery
- the request status queryAnError
if failure, or a paged collection of CustomerRequest.CustomerRequestStatus
Copyright © 2017 Atlassian. All rights reserved.