public class IssueSearchApi extends Object
| Constructor and Description |
|---|
IssueSearchApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<IssuePickerSuggestions> |
getIssuePickerResource(Optional<String> query,
Optional<String> currentJQL,
Optional<String> currentIssueKey,
Optional<String> currentProjectId,
Optional<Boolean> showSubTasks,
Optional<Boolean> showSubTaskParent,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get issue picker suggestions
Returns lists of issues matching a query string.
|
io.reactivex.Single<IssueMatches> |
matchIssues(IssuesAndJQLQueries issuesAndJQLQueries,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Check issues against JQL
Checks whether one or more issues would be returned by one or more JQL queries.
|
io.reactivex.Single<SearchResults> |
searchForIssuesUsingJql(Optional<String> jql,
Optional<Integer> startAt,
Optional<Integer> maxResults,
Optional<String> validateQuery,
Optional<List<String>> fields,
Optional<String> expand,
Optional<List<String>> properties,
Optional<Boolean> fieldsByKeys,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Search for issues using JQL (GET)
Searches for issues using [JQL](https://confluence.atlassian.com/x/egORLQ).
|
io.reactivex.Single<SearchResults> |
searchForIssuesUsingJqlPost(SearchRequestBean searchRequestBean,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Search for issues using JQL (POST)
Searches for issues using [JQL](https://confluence.atlassian.com/x/egORLQ).
|
public IssueSearchApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<IssuePickerSuggestions> getIssuePickerResource(Optional<String> query, Optional<String> currentJQL, Optional<String> currentIssueKey, Optional<String> currentProjectId, Optional<Boolean> showSubTasks, Optional<Boolean> showSubTaskParent, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
query - A string to match against text fields in the issue such as title, description, or comments. (optional)currentJQL - A JQL query defining a list of issues to search for the query term. Note that `username` and `userkey` cannot be used as search terms for this parameter, due to privacy reasons. Use `accountId` instead. (optional)currentIssueKey - The key of an issue to exclude from search results. For example, the issue the user is viewing when they perform this query. (optional)currentProjectId - The ID of a project that suggested issues must belong to. (optional)showSubTasks - Indicate whether to include subtasks in the suggestions list. (optional)showSubTaskParent - When `currentIssueKey` is a subtask, whether to include the parent issue in the suggestions if it matches the query. (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<IssueMatches> matchIssues(IssuesAndJQLQueries issuesAndJQLQueries, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
issuesAndJQLQueries - (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<SearchResults> searchForIssuesUsingJql(Optional<String> jql, Optional<Integer> startAt, Optional<Integer> maxResults, Optional<String> validateQuery, Optional<List<String>> fields, Optional<String> expand, Optional<List<String>> properties, Optional<Boolean> fieldsByKeys, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
jql - The [JQL](https://confluence.atlassian.com/x/egORLQ) that defines the search. Note: * If no JQL expression is provided, all issues are returned. * `username` and `userkey` cannot be used as search terms due to privacy reasons. Use `accountId` instead. * If a user has hidden their email address in their user profile, partial matches of the email address will not find the user. An exact match is required. (optional)startAt - The index of the first item to return in a page of results (page offset). (optional, default to 0)maxResults - The maximum number of items to return per page. To manage page size, Jira may return fewer items per page where a large number of fields are requested. The greatest number of items returned per page is achieved when requesting `id` or `key` only. (optional, default to 50)validateQuery - Determines how to validate the JQL query and treat the validation results. Supported values are: * `strict` Returns a 400 response code if any errors are found, along with a list of all errors (and warnings). * `warn` Returns all errors as warnings. * `none` No validation is performed. * `true` *Deprecated* A legacy synonym for `strict`. * `false` *Deprecated* A legacy synonym for `warn`. Note: If the JQL is not correctly formed a 400 response code is returned, regardless of the `validateQuery` value. (optional, default to strict)fields - A list of fields to return for each issue, use it to retrieve a subset of fields. This parameter accepts a comma-separated list. Expand options include: * `*all` Returns all fields. * `*navigable` Returns navigable fields. * Any issue field, prefixed with a minus to exclude. Examples: * `summary,comment` Returns only the summary and comments fields. * `-description` Returns all navigable (default) fields except description. * `*all,-comment` Returns all fields except comments. This parameter may be specified multiple times. For example, `fields=field1,field2&fields=field3`. Note: All navigable fields are returned by default. This differs from [GET issue](#api-rest-api-2-issue-issueIdOrKey-get) where the default is all fields. (optional, default to new ArrayList<>())expand - Use [expand](#expansion) to include additional information about issues in the response. This parameter accepts a comma-separated list. Expand options include: * `renderedFields` Returns field values rendered in HTML format. * `names` Returns the display name of each field. * `schema` Returns the schema describing a field type. * `transitions` Returns all possible transitions for the issue. * `operations` Returns all possible operations for the issue. * `editmeta` Returns information about how each field can be edited. * `changelog` Returns a list of recent updates to an issue, sorted by date, starting from the most recent. * `versionedRepresentations` Instead of `fields`, returns `versionedRepresentations` a JSON array containing each version of a field's value, with the highest numbered item representing the most recent version. (optional)properties - A list of issue property keys for issue properties to include in the results. This parameter accepts a comma-separated list. Multiple properties can also be provided using an ampersand separated list. For example, `properties=prop1,prop2&properties=prop3`. A maximum of 5 issue property keys can be specified. (optional, default to new ArrayList<>())fieldsByKeys - Reference fields by their key (rather than ID). (optional, default to false)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<SearchResults> searchForIssuesUsingJqlPost(SearchRequestBean searchRequestBean, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
searchRequestBean - A JSON object containing the search request. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2021 Everit Kft.. All rights reserved.