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
Posted yesterday in United States

Confluence Security Advisory

Good morning Members, Not sure if you are aware. Please read the following: https://www.icloud.com/keynote/0RyJ4VEdNUpjDpGfMhfZx9fEg#Confluence_Security_Advisor More details: https://co...

36 views 1 0
View post

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