Hi,
I wanted to know the jql query and its related clauses
I was able to get the clause using
.getClauses() //from the where clause of query
Now I even want to know the logical operators((Like AND OR or AND NOT)) between the clauses..
How can I find out the logical operators between clauses.??
Community moderators have prevented the ability to post new answers.
You need to walk the clause tree with a visitor - see com.atlassian.query.clause.ClauseVisitor. For the WHERE clause you should do something like this:
query.getWhereClause().accept(visitor);
where visitor is an instance of your ClauseVisitor implementation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.