Class CascadingSelectCustomFieldClauseContextFactory

java.lang.Object
com.atlassian.jira.jql.context.CascadingSelectCustomFieldClauseContextFactory
All Implemented Interfaces:
ClauseContextFactory

@NonInjectableComponent public class CascadingSelectCustomFieldClauseContextFactory extends Object implements ClauseContextFactory
The context calculation for cascading select. This context factory is slightly inconsistent from others in JIRA. In other fields it is true that context(field in (a, c)) = context(field = a or field = c). We decided not to enforce this for the cascading select because it uses encoded query literals to represent a single query. For example, the query "field in cascadeoption(p1, NONE)" will actually return "QueryLiteral(id(p1))", "QueryLiteral(-id(p1child1))", "QueryLiteral(-id(p1child2))",...,"QueryLiteral(-id(p1childn))". In this case we look at every literal when calculating the context rather than at each literal indivuidally so that we can produce a some useful context.
Since:
v4.0