Class HistoryFieldValueValidator

java.lang.Object
com.atlassian.jira.jql.validator.HistoryFieldValueValidator

public class HistoryFieldValueValidator extends Object
Validates that the values in a history clause are valid for a field. Has to take into account historical name changes.
Since:
v4.4
  • Field Details

  • Constructor Details

  • Method Details

    • validateValues

      @Nonnull public MessageSet validateValues(ApplicationUser searcher, String fieldName, List<QueryLiteral> rawValues)
      Validate a set of values supplied within a JQL query.

      For history clauses, such as assignee WAS fred or status CHANGED FROM Open TO Resolved BY fred, values are permitted if either they are currently valid or they exist anywhere in the change history.

      Parameters:
      searcher - the user performing the search
      fieldName - the name of the field to be validated, such as "assignee" or "status"
      rawValues - the values supplied for validation
      Returns:
      a message set containing translated error messages. If there are no errors, then an empty message set is returned