|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchRestClient
The client handling search REST resource
| Method Summary | |
|---|---|
com.atlassian.util.concurrent.Promise<Iterable<Filter>> |
getFavouriteFilters()
Retrieves list of your favourite filters. |
com.atlassian.util.concurrent.Promise<Filter> |
getFilter(long id)
Retrieves filter for given id. |
com.atlassian.util.concurrent.Promise<Filter> |
getFilter(URI filterUri)
Retrieves filter for given URI. |
com.atlassian.util.concurrent.Promise<SearchResult> |
searchJql(String jql)
Performs a JQL search and returns issues matching the query |
com.atlassian.util.concurrent.Promise<SearchResult> |
searchJql(String jql,
Integer maxResults,
Integer startAt,
Set<String> fields)
Performs a JQL search and returns issues matching the query. |
| Method Detail |
|---|
com.atlassian.util.concurrent.Promise<SearchResult> searchJql(@Nullable
String jql)
jql - a valid JQL query (will be properly encoded by JIRA client). Restricted JQL characters (like '/') must be properly escaped.
RestClientException - in case of problems (connectivity, malformed messages, invalid JQL query, etc.)
com.atlassian.util.concurrent.Promise<SearchResult> searchJql(@Nullable
String jql,
@Nullable
Integer maxResults,
@Nullable
Integer startAt,
@Nullable
Set<String> fields)
jql - a valid JQL query (will be properly encoded by JIRA client). Restricted JQL characters (like '/') must
be properly escaped. All issues matches to the null or empty JQL.maxResults - maximum results for this search. When null is given, the default maxResults configured in JIRA is
used (usually 50).startAt - starting index (0-based) defining how many issues should be skipped in the results. For example for
startAt=5 and maxResults=3 the results will include matching issues with index 5, 6 and 7.
For startAt = 0 and maxResults=3 the issues returned are from position 0, 1 and 2.
When null is given, the default startAt is used (0).fields - set of fields which should be retrieved. You can specify *all for all fields
or *navigable (which is the default value, used when null is given) which will cause to include only
navigable fields in the result. To ignore the specific field you can use "-" before the field's name.
Note that the following fields: summary, issuetype, created, updated, project and status are
required. These fields are included in *all and *navigable.
RestClientException - in case of problems (connectivity, malformed messages, invalid JQL query, etc.)com.atlassian.util.concurrent.Promise<Iterable<Filter>> getFavouriteFilters()
com.atlassian.util.concurrent.Promise<Filter> getFilter(URI filterUri)
filterUri - URI to filter resource (usually get from self attribute describing component elsewhere)
com.atlassian.util.concurrent.Promise<Filter> getFilter(long id)
id - ID of the filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||