Hi! Please help.
I want create custom listener, which will perform the re-index issues (which are included in version or sprint), if release date changed.
I have a piece of code, but I can’t figure out how to get the list of issues in the release and reindex its.
def issueManager = ComponentAccessor.getIssueManager()
def issueIndexingService = ComponentAccessor.getComponent(IssueIndexingService)
Version version = event.getVersion()
????
boolean wasIndexing = ImportUtils.isIndexIssues();
ImportUtils.setIndexIssues(true);
log.warn("Reindex issue ${issue.key} ${issue.id}")
issueIndexingService.reIndex(issueManager.getIssueObject(issue.id));
ImportUtils.setIndexIssues(wasIndexing);