Class ProjectPickerResource

java.lang.Object
com.atlassian.jira.rest.v2.issue.project.ProjectPickerResource

@Path("projects/picker") @Consumes("application/json") @Produces("application/json") public class ProjectPickerResource extends Object
Since:
8.21
  • Constructor Details

  • Method Details

    • searchForProjects

      @GET public javax.ws.rs.core.Response searchForProjects(@QueryParam("query") @DefaultValue("") String query, @QueryParam("maxResults") @DefaultValue("0") int maxResults, @QueryParam("allowEmptyQuery") @DefaultValue("false") boolean allowEmptyQuery)
      Returns a list of projects visible to the user where project name and/or key is matching the given query.
      Parameters:
      query - a sequence of characters expected to be found in the word-prefix of project name and/or key.
      maxResults - maximum number of matches to return. Zero means a default limit of 100 and negative numbers return no results.
      allowEmptyQuery - if true, and the query is empty, the method will return first results limited to the value of "maxResults" or default limit of 100.
      Returns:
      A list of projects matching the query.