Class UpdateHistoryAccessor
java.lang.Object
com.atlassian.jira.issue.changehistory.UpdateHistoryAccessor
Searches indices for changes performed by a given user within given time
- Since:
- v7.4
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateHistoryAccessor(ProjectRoleAndGroupPermissionsQueryDecorator projectRoleAndGroupPermissionsQueryDecorator, IndexAccessorRegistry indexAccessorRegistry) -
Method Summary
Modifier and TypeMethodDescriptionsearchForIssues(List<String> userIds, DateRange fromDate, DateRange toDate, QueryCreationContext queryCreationContext) Searches the changes index and the comments index for items affected by given user (that is, changes performed by user and comments created/updated/deleted by user).
-
Constructor Details
-
UpdateHistoryAccessor
public UpdateHistoryAccessor(ProjectRoleAndGroupPermissionsQueryDecorator projectRoleAndGroupPermissionsQueryDecorator, IndexAccessorRegistry indexAccessorRegistry)
-
-
Method Details
-
searchForIssues
public Set<String> searchForIssues(List<String> userIds, DateRange fromDate, DateRange toDate, QueryCreationContext queryCreationContext) Searches the changes index and the comments index for items affected by given user (that is, changes performed by user and comments created/updated/deleted by user). Returns ids of issues to which the found items refer to. Both date parameters are optional, and limit search to changes/comments created afterfromDateor beforetoDate(inclusively for both parameters)- Parameters:
userIds- ids of user performing the changes/creating the commentsfromDate- limits search to comments/changes performed after given datetoDate- limits search to comments/changes performed before given datequeryCreationContext- used for permission subqueries- Returns:
- ids of issues to which the found items refer to.
-