Hello All,
Re-Indexing an issue is not working all the time using below script in script listeners:
MutableIssue mutableIssue = ComponentAccessor.getIssueManager().getIssueObject(issue.id);
boolean isIndex = ImportUtils.isIndexIssues();
ImportUtils.setIndexIssues(true);
IssueIndexingService issueIndexingService = (IssueIndexingService) ComponentAccessor.getComponent(IssueIndexingService);
issueIndexingService.reIndex(mutableIssue);
ImportUtils.setIndexIssues(isIndex);
Please help me!
Thanks in Advance,
Mani