Interface RequestTypeService
@PublicApi
@ReturnValuesAreNonnullByDefault
@ParametersAreNonnullByDefault
public interface RequestTypeService
Used to perform operations on
RequestType
.-
Method Summary
Modifier and TypeMethodDescriptioncreateRequestType
(com.atlassian.jira.user.ApplicationUser user, RequestTypeCreateParameters requestTypeCreateParameters) Create a newRequestType
using the providedRequestTypeCreateParameters
.deleteRequestType
(com.atlassian.jira.user.ApplicationUser user, RequestTypeDeleteParameters requestTypeDeleteParameters) Delete aRequestType
with using the providedRequestTypeDeleteParameters
.getRequestTypes
(com.atlassian.jira.user.ApplicationUser user, RequestTypeQuery requestTypeQuery) Retrieve a list ofRequestType
that satisfy the query parameters.updateRequestType
(com.atlassian.jira.user.ApplicationUser user, RequestTypeUpdateParameters requestTypeUpdateParameters) Update aRequestType
with using the providedRequestTypeUpdateParameters
.
-
Method Details
-
newQueryBuilder
RequestTypeQuery.Builder newQueryBuilder()- Returns:
- a new
RequestTypeQuery.Builder
to buildRequestTypeQuery
.
-
getRequestTypes
@Nonnull PagedResponse<RequestType> getRequestTypes(@Nullable com.atlassian.jira.user.ApplicationUser user, @Nonnull RequestTypeQuery requestTypeQuery) Retrieve a list ofRequestType
that satisfy the query parameters.- Parameters:
user
- the user executing the requestsrequestTypeQuery
- the query parameters- Returns:
- a paged of
RequestType
- Throws:
ServiceDeskServiceException
- on error
-
newCreateBuilder
RequestTypeCreateParameters.Builder newCreateBuilder()- Returns:
- a new
RequestTypeCreateParameters.Builder
to buildRequestTypeCreateParameters
.
-
createRequestType
RequestType createRequestType(com.atlassian.jira.user.ApplicationUser user, RequestTypeCreateParameters requestTypeCreateParameters) Create a newRequestType
using the providedRequestTypeCreateParameters
.
Default values:- Status mapping is not supported yet.
- Field mapping is not supported yet and will default to showing only required fields.
- Ordering will default to the last item
- Parameters:
user
- the user executing the requestrequestTypeCreateParameters
- params used to create a newRequestType
- Returns:
- a newly created
RequestType
- Throws:
ServiceDeskServiceException
- on error
-
newDeleteBuilder
RequestTypeDeleteParameters.Builder newDeleteBuilder()- Returns:
- a new
RequestTypeUpdateParameters.Builder
to buildRequestTypeUpdateParameters
. - Since:
- v3.7.0
-
deleteRequestType
RequestType deleteRequestType(com.atlassian.jira.user.ApplicationUser user, RequestTypeDeleteParameters requestTypeDeleteParameters) Delete aRequestType
with using the providedRequestTypeDeleteParameters
.Executing user must have permission to perform the request.
- Parameters:
user
- the user executing the requestrequestTypeDeleteParameters
- params used to delete theRequestType
- Returns:
- the updated
RequestType
- Throws:
ServiceDeskServiceException
- on error- Since:
- v3.7.0
-
newUpdateBuilder
RequestTypeUpdateParameters.Builder newUpdateBuilder()- Returns:
- a new
RequestTypeUpdateParameters.Builder
to buildRequestTypeUpdateParameters
. - Since:
- v3.7.0
-
updateRequestType
RequestType updateRequestType(com.atlassian.jira.user.ApplicationUser user, RequestTypeUpdateParameters requestTypeUpdateParameters) Update aRequestType
with using the providedRequestTypeUpdateParameters
.Executing user must have permission to perform the request.
- Parameters:
user
- the user executing the requestrequestTypeUpdateParameters
- params used to update theRequestType
- Returns:
- the updated
RequestType
- Throws:
ServiceDeskServiceException
- on error- Since:
- v3.7.0
-