public interface SearchRestClient
Modifier and Type | Method and Description |
---|---|
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,
String fields)
Performs a JQL search and returns issues matching the query.
|
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 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
- comma separated list 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 filterCopyright © 2013 Atlassian. All Rights Reserved.