@InjectableComponent public class

WorklogQueryExecutor

extends Object
java.lang.Object
   ↳ com.atlassian.jira.jql.query.WorklogQueryExecutor

Class Overview

Component that can execute queries against the worklog index and return issue ids associated with the returned worklog documents.

Summary

Public Constructors
WorklogQueryExecutor(SearchProviderFactory searchProviderFactory, QueryProjectRoleAndGroupPermissionsDecorator queryPermissionsDecorator)
Public Methods
Iterable<Long> executeWorklogQuery(Query worklogQuery, QueryCreationContext context)
Executes a worklog query and returns an iterable of unique issue ids associated with the returned worklogs.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public WorklogQueryExecutor (SearchProviderFactory searchProviderFactory, QueryProjectRoleAndGroupPermissionsDecorator queryPermissionsDecorator)

Public Methods

public Iterable<Long> executeWorklogQuery (Query worklogQuery, QueryCreationContext context)

Executes a worklog query and returns an iterable of unique issue ids associated with the returned worklogs.

Before execution the query is modified so that it automatically checks all the required permissions for user currently executing it, so you needn't worry about such stuff, just provide the query in it's simplest possible form.

In case the index is unreachable or any other IO exceptions an empty set is returned.

Parameters
worklogQuery lucene query over the worklog index
context query context
Returns
  • issue ids