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?
Hello @Lisanne Nauta
Do you really need to use jqlClauseBuilder?
Try to use jqlParser instead
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")
def results = searchProvider.search(query, user, PagerFilter.getUnlimitedFilter())
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 ...
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