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 newRequestTypeusing the providedRequestTypeCreateParameters.deleteRequestType(com.atlassian.jira.user.ApplicationUser user, RequestTypeDeleteParameters requestTypeDeleteParameters) Delete aRequestTypewith using the providedRequestTypeDeleteParameters.getRequestTypes(com.atlassian.jira.user.ApplicationUser user, RequestTypeQuery requestTypeQuery) Retrieve a list ofRequestTypethat satisfy the query parameters.updateRequestType(com.atlassian.jira.user.ApplicationUser user, RequestTypeUpdateParameters requestTypeUpdateParameters) Update aRequestTypewith using the providedRequestTypeUpdateParameters.
-
Method Details
-
newQueryBuilder
RequestTypeQuery.Builder newQueryBuilder()- Returns:
- a new
RequestTypeQuery.Builderto buildRequestTypeQuery.
-
getRequestTypes
@Nonnull PagedResponse<RequestType> getRequestTypes(@Nullable com.atlassian.jira.user.ApplicationUser user, @Nonnull RequestTypeQuery requestTypeQuery) Retrieve a list ofRequestTypethat 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.Builderto buildRequestTypeCreateParameters.
-
createRequestType
RequestType createRequestType(com.atlassian.jira.user.ApplicationUser user, RequestTypeCreateParameters requestTypeCreateParameters) Create a newRequestTypeusing 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.Builderto buildRequestTypeUpdateParameters. - Since:
- v3.7.0
-
deleteRequestType
RequestType deleteRequestType(com.atlassian.jira.user.ApplicationUser user, RequestTypeDeleteParameters requestTypeDeleteParameters) Delete aRequestTypewith 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.Builderto buildRequestTypeUpdateParameters. - Since:
- v3.7.0
-
updateRequestType
RequestType updateRequestType(com.atlassian.jira.user.ApplicationUser user, RequestTypeUpdateParameters requestTypeUpdateParameters) Update aRequestTypewith 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
-