Class OrderByOptionsResource
java.lang.Object
com.atlassian.jira.components.orderby.rest.OrderByOptionsResource
@Path("orderByOptions")
@Consumes("application/json")
@Produces("application/json")
public class OrderByOptionsResource
extends Object
Returns the fields that users can sort by along with the corresponding sort JQL.
- Since:
- v2.0.12
-
Constructor Summary
ConstructorsConstructorDescriptionOrderByOptionsResource(FieldManager fieldManager, JqlQueryParser jqlQueryParser, SortJqlGenerator sortJqlGenerator, JiraAuthenticationContext jiraAuthenticationContext, FilterLookerUpper filterLookerUpper, OrderByUtil orderByUtil) Creates a new OrderByOptionsResource. -
Method Summary
Modifier and TypeMethodDescriptiongetOrderByOptions(OrderByRequest request) Returns the order-by options that are available that matchfieldNamePrefix.getPrimary(OrderByRequest request) Returns the order-by options that are available that matchfieldNamePrefix.
-
Constructor Details
-
OrderByOptionsResource
@Inject public OrderByOptionsResource(FieldManager fieldManager, JqlQueryParser jqlQueryParser, SortJqlGenerator sortJqlGenerator, JiraAuthenticationContext jiraAuthenticationContext, FilterLookerUpper filterLookerUpper, OrderByUtil orderByUtil) Creates a new OrderByOptionsResource.
-
-
Method Details
-
getOrderByOptions
Returns the order-by options that are available that matchfieldNamePrefix. IffieldNamePrefixis null or a blank String then this method returns the firstmaxResultsoptions (defaults to 10 and is hard-limited to 50).- Parameters:
request- the body of the request.- Returns:
- OrderByOptions
-
getPrimary
Returns the order-by options that are available that matchfieldNamePrefix. IffieldNamePrefixis null or a blank String then this method returns the firstmaxResultsoptions (defaults to 10 and is hard-limited to 50).- Parameters:
request- the body of the request.- Returns:
- OrderByOptions
-