public class

IssuePropertyClauseValueGenerator

extends Object
implements ClauseValuesGenerator
java.lang.Object
   ↳ com.atlassian.jira.index.property.IssuePropertyClauseValueGenerator

Class Overview

This value generator suggests auto-completion values for aliased issue properties.

Summary

Public Constructors
IssuePropertyClauseValueGenerator(String luceneFieldName, IssueIndexManager indexManager)
Public Methods
ClauseValuesGenerator.Results getPossibleValues(ApplicationUser searcher, String jqlClauseName, String valuePrefix, int maxResults)
Will return a string representation of only the possible values that match the value prefix for this clause.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.jql.values.ClauseValuesGenerator

Public Constructors

public IssuePropertyClauseValueGenerator (String luceneFieldName, IssueIndexManager indexManager)

Public Methods

public ClauseValuesGenerator.Results getPossibleValues (ApplicationUser searcher, String jqlClauseName, String valuePrefix, int maxResults)

Will return a string representation of only the possible values that match the value prefix for this clause. This should not return more results than specified in maxNumResults. If it is possible this should use the maxNumResults to efficiently generate the results.

The contract of this method is that if the valuePrefix exactly (minus case) matches the suggestion then we suggest it. This will allow users to verify in their own minds that even though they have typed the full value, it is still valid.

Parameters
searcher the user preforming the search.
jqlClauseName the jql clause name that was entered by the user, represents the identifier that was used to find this values generator. Note: for custom fields this can be used to identify the custom field we are dealing with.
valuePrefix the portion of the value that has already been provided by the user.
maxResults the maximun number of results to return.
Returns
  • a string value of the clause values that match the provided value prefix, empty list if none match.