Class VersionSpecificRelationalOperatorQueryFactory

java.lang.Object
com.atlassian.jira.jql.query.AbstractOperatorQueryFactory<Version>
com.atlassian.jira.jql.query.VersionSpecificRelationalOperatorQueryFactory
All Implemented Interfaces:
OperatorSpecificQueryFactory

public class VersionSpecificRelationalOperatorQueryFactory extends AbstractOperatorQueryFactory<Version> implements OperatorSpecificQueryFactory

Creates queries for relational version operators Operator.GREATER_THAN, Operator.LESS_THAN, Operator.GREATER_THAN_EQUALS, Operator.LESS_THAN_EQUALS.

Version comparison depends on the project and version's sequence. Versions from different projects are not comparable.

To create a query that matches the version with the given operator, this factory searches for versions within the same project as the version operand that satisfy the relational predicate.

For example, if the operator is '>' (Operator.GREATER_THAN), we look for versions that are greater than the given version in the same project and create a query that matches any of these versions. If the version's name matches more than one version across different projects, we combine the results from all matching projects.