Interface RequestParticipantService
@PublicApi
public interface RequestParticipantService
Used to perform actions on
ApplicationUser
who participates in a CustomerRequest
-
Method Summary
Modifier and TypeMethodDescriptionPagedResponse<com.atlassian.jira.user.ApplicationUser>
addRequestParticipants
(com.atlassian.jira.user.ApplicationUser user, RequestParticipantUpdateParameters requestParticipantUpdateParameters) Add a list ofApplicationUser
as participant to a givenCustomerRequest
.PagedResponse<com.atlassian.jira.user.ApplicationUser>
getRequestParticipants
(com.atlassian.jira.user.ApplicationUser user, RequestParticipantQuery requestParticipantQuery) Get a page ofApplicationUser
who satisfy the query parametersPagedResponse<com.atlassian.jira.user.ApplicationUser>
removeRequestParticipants
(com.atlassian.jira.user.ApplicationUser user, RequestParticipantUpdateParameters requestParticipantUpdateParameters) Remove a listApplicationUser
as participant from a givenCustomerRequest
.
-
Method Details
-
newQueryBuilder
RequestParticipantQuery.Builder newQueryBuilder()- Returns:
- a new
RequestParticipantQuery.Builder
instance to buildRequestParticipantQuery
-
getRequestParticipants
PagedResponse<com.atlassian.jira.user.ApplicationUser> getRequestParticipants(com.atlassian.jira.user.ApplicationUser user, RequestParticipantQuery requestParticipantQuery) Get a page ofApplicationUser
who satisfy the query parameters- Parameters:
user
- the user executing the requestrequestParticipantQuery
- the query parameter- Returns:
- a page of
ApplicationUser
- Throws:
ServiceDeskServiceException
- on error
-
newUpdateBuilder
RequestParticipantUpdateParameters.Builder newUpdateBuilder()- Returns:
- a new
RequestParticipantUpdateParameters.Builder
instance to buildRequestParticipantUpdateParameters
-
addRequestParticipants
PagedResponse<com.atlassian.jira.user.ApplicationUser> addRequestParticipants(com.atlassian.jira.user.ApplicationUser user, RequestParticipantUpdateParameters requestParticipantUpdateParameters) Add a list ofApplicationUser
as participant to a givenCustomerRequest
. This method will add as many participants as possible from the provided list (duplication is checked)- Parameters:
user
- theApplicationUser
executing the requestrequestParticipantUpdateParameters
- the update parameters- Returns:
- the updated participant list
- Throws:
ServiceDeskServiceException
- on error
-
removeRequestParticipants
PagedResponse<com.atlassian.jira.user.ApplicationUser> removeRequestParticipants(com.atlassian.jira.user.ApplicationUser user, RequestParticipantUpdateParameters requestParticipantUpdateParameters) Remove a listApplicationUser
as participant from a givenCustomerRequest
. If a provided user is a participant, then he will be removed from the request. If the user is not a participant aServiceDeskServiceException
will be thrown.- Parameters:
user
- theApplicationUser
executing the requestrequestParticipantUpdateParameters
- the update parameters- Returns:
- the updated participant list
- Throws:
ServiceDeskServiceException
- on error
-