It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

ramya Jun 09, 2015


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

0 votes
Petar Petrov Jun 06, 2016

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:


where visitor is an instance of your ClauseVisitor implementation.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

2,625 views 14 17
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you