@PublicApi
public interface QueueService
Queue
objects and their issuesModifier and Type | Method and Description |
---|---|
Queue |
addQueue(com.atlassian.jira.user.ApplicationUser user,
QueueCreateParameters queueCreateParameters)
Given the required QueueParameters create a new
Queue in the service project |
void |
deleteQueue(com.atlassian.jira.user.ApplicationUser user,
int serviceDeskId,
int queueId)
Delete
Queue for the given id |
int |
getQueueLimitForProject()
Gets the maximum number of queues allowed for a project
|
PagedResponse<Queue> |
getQueues(com.atlassian.jira.user.ApplicationUser user,
QueueQuery queueQuery)
Get a page of
Queue that satisfies the provided QueueQuery . |
PagedResponse<com.atlassian.jira.issue.Issue> |
getRequestsByQueue(com.atlassian.jira.user.ApplicationUser user,
QueueRequestQuery query)
Get a page of
Issue belonging to the specified Queue |
QueueCreateParameters.Builder |
newQueueCreateParameterBuilder(int serviceDeskId,
String queueName)
Get a new QueueCreateParameters builder.
|
QueueQuery.Builder |
newQueueQueryBuilder() |
QueueRequestQuery.Builder |
newQueueRequestQueryBuilder() |
QueueUpdateParameters.Builder |
newQueueUpdateParameterBuilder(int serviceDeskId,
int queueId)
Get a new QueueUpdateParameters builder.
|
List<Queue> |
reorderQueues(com.atlassian.jira.user.ApplicationUser user,
int serviceDeskId,
List<Integer> newQueueOrderId)
Reorder the list of
Queue for a given service project |
Queue |
updateQueue(com.atlassian.jira.user.ApplicationUser user,
QueueUpdateParameters queueUpdateParameters)
Given the required QueueParameters update the
Queue in the service project. |
QueueQuery.Builder newQueueQueryBuilder()
QueueQuery.Builder
instance to construct QueueQuery
PagedResponse<Queue> getQueues(com.atlassian.jira.user.ApplicationUser user, QueueQuery queueQuery)
Queue
that satisfies the provided QueueQuery
.user
- the user executing the requestqueueQuery
- the query parameterQueue
ServiceDeskServiceException
- on errorQueueRequestQuery.Builder newQueueRequestQueryBuilder()
QueueRequestQuery.Builder
instance to construct QueueRequestQuery
PagedResponse<com.atlassian.jira.issue.Issue> getRequestsByQueue(com.atlassian.jira.user.ApplicationUser user, QueueRequestQuery query)
Issue
belonging to the specified Queue
user
- the user executing the requestquery
- the query parameterIssue
ServiceDeskServiceException
- on errorint getQueueLimitForProject()
QueueCreateParameters.Builder newQueueCreateParameterBuilder(int serviceDeskId, @Nonnull String queueName)
serviceDeskId
- The id of a service project for the queuequeueName
- The name of the queueQueueCreateParameters.Builder
instance to construct QueueCreateParameters
QueueUpdateParameters.Builder newQueueUpdateParameterBuilder(int serviceDeskId, int queueId)
serviceDeskId
- The service project for the queuequeueId
- The id of the queue to updateQueueUpdateParameters.Builder
instance to construct QueueUpdateParameters
Queue addQueue(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull QueueCreateParameters queueCreateParameters)
Queue
in the service projectuser
- the user executing the requestqueueCreateParameters
- the create parametersQueue
ServiceDeskServiceException
- on errorQueue updateQueue(@Nonnull com.atlassian.jira.user.ApplicationUser user, @Nonnull QueueUpdateParameters queueUpdateParameters)
Queue
in the service project.
All fields present in the update parameters will override existing values and if a field is not present it will be ignored.user
- the user executing the requestqueueUpdateParameters
- the new queue parametersQueue
ServiceDeskServiceException
- on errorvoid deleteQueue(@Nonnull com.atlassian.jira.user.ApplicationUser user, int serviceDeskId, int queueId)
Queue
for the given iduser
- the user executing the requestserviceDeskId
- the id of a service projectqueueId
- the id of the Queue
to deleteServiceDeskServiceException
- on errorList<Queue> reorderQueues(@Nonnull com.atlassian.jira.user.ApplicationUser user, int serviceDeskId, @Nonnull List<Integer> newQueueOrderId)
Queue
for a given service projectuser
- the user executing the requestserviceDeskId
- the id of a service projectnewQueueOrderId
- the new order of Queue
id'sQueue
's in the new orderServiceDeskServiceException
- on errorCopyright © 2024 Atlassian. All rights reserved.