Hi Everyone,
As title, is there any way which can re-index issue when particular custom field's value has been changed? Or does anyone know how to write a listener for re-indexing issues and subtask issues? I tried some groovy scripts which were provided on other posts but it seems not working. Please help me on it. Thank you very much!
Best Regards,
KH
If you need to reindex an issue in a script, you can do so like this:
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.index.IssueIndexingService
def indexManager = ComponentAccessor.getComponent(IssueIndexingService.class)
indexManager.reIndex(myIssue)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, that I'm not sure about offhand. Maybe someone else can chime in with guidance on that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.