How to find the clauses of a jql query and also the logical operators between the clauses

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.??

 

1 answer

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Feedback & Announcements

How do you analyze GC logs, thread dumps and head dumps?

Hi awesome community!  In this article, I would like to describe the one of the toolset (service) for the analyze some problems on different Java-based instances, of course, as Atlassian admini...

80 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you