@PublicApi
public interface CustomerRequestQuery
CustomerRequest
which a user has access to.
The following are examples to construct common queries:
// Query of customer requests where the executing user is the creator
CustomerRequestQuery query = customerRequestService.newQueryBuilder().requestStatus(OWNED_REQUESTS).build();
// Query of open customer requests in a service project
CustomerRequestQuery query = customerRequestService.newQueryBuilder().requestOwnership(OPEN_REQUESTS).serviceDesk(serviceDeskId).build();
Modifier and Type | Interface and Description |
---|---|
static interface |
CustomerRequestQuery.Builder
Builder to construct the
CustomerRequestQuery . |
static class |
CustomerRequestQuery.REQUEST_OWNERSHIP |
static class |
CustomerRequestQuery.REQUEST_STATUS |
Modifier and Type | Method and Description |
---|---|
LimitedPagedRequest |
pagedRequest()
To request a page of
CustomerRequest |
Optional<CustomerRequestQuery.REQUEST_OWNERSHIP> |
requestOwnership()
Limited result customer requests to those which are raised by executing user, or requests he participated in, or both
|
Optional<CustomerRequestQuery.REQUEST_STATUS> |
requestStatus()
Limit result customer requests to those are open, closed, or both
|
Optional<Integer> |
requestType()
Use this
requestType() in combination with serviceDesk()
to narrow the query to the CustomerRequest 's that belong to a RequestType |
Optional<String> |
searchTerm()
Filter a customer request on its
Issue 's Summary |
Optional<Integer> |
serviceDesk()
Narrows the query to the
CustomerRequest 's that belong to a ServiceDesk |
Optional<CustomerRequestQuery.REQUEST_OWNERSHIP> requestOwnership()
Optional<CustomerRequestQuery.REQUEST_STATUS> requestStatus()
Optional<Integer> serviceDesk()
CustomerRequest
's that belong to a ServiceDesk
Optional<Integer> requestType()
requestType()
in combination with serviceDesk()
to narrow the query to the CustomerRequest
's that belong to a RequestType
LimitedPagedRequest pagedRequest()
CustomerRequest
Copyright © 2024 Atlassian. All rights reserved.