Hi,
I am have created a plugin that will capture an Event called on Post function. Inside that plugin, I am reindexing issues. But unfortunately, the script fields are not getting indexed, rather they lose indexes.
The code for indexing is as follows:
for(Issue issue:issueList)
{
try{
//MutableIssue issueObj= issueManager.getIssueObject(issue.getKey());
//indexManager.deIndex(issue);
boolean wasIndexing = ImportUtils.isIndexIssues();
ImportUtils.setIndexIssues(true);
indexManager.reIndex(issue);
ImportUtils.setIndexIssues(wasIndexing);
}
catch (IndexException e)
{
log.error("IndexException="+e);
}
}