Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements


  • Give kudos
  • My kudos


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 filter issues by worklogAuthor using the jqlClauseBuilder in the Jira SDK

I'm building a custom report with the JIRA SDK. However, I have difficulties to build a query using the worklogAuthor. I would like to do something like:


Query q = jqlClauseBuilder.addStringCondition("worklogAuthor",Operator.EQUALS,"admin").buildQuery();

But it throws an error. Can someone help me?

2 answers

This seems to work properly. But the query  jqlClauseBuilder.addStringCondition("worklogAuthor","admin").buildQuery(); failed. Should also be posible.

Hello @Lisanne Nauta

Do you really need to use jqlClauseBuilder? 

Try to use jqlParser instead

import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.jql.parser.JqlQueryParser
import com.atlassian.jira.web.bean.PagerFilter

def jqlQueryParser = ComponentAccessor.getComponent(JqlQueryParser)
def searchProvider = ComponentAccessor.getComponent(SearchProvider)
def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()

// jql query to sum fields
def query = jqlQueryParser.parseQuery("worklogAuthor = admin")
//get results
def results =, user, PagerFilter.getUnlimitedFilter())

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

3,996 views 11 5
Join discussion

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