Hi All,
Can anyone please let me know, how to schedule Background indexing in JIRA using SCRIPTRUNNER Plugin.
There is in built feature to automate indexing of issues but there is no option to schedule that built in feature.
Regards,
Suraj Shrivastav
Hi @Suraj Shrivastav , you have Escalation Services option.
I think is easier to add manually the reindex than to call a built in.
You can use the IssueIndexingService library or the IssueIndexManager to reindex the issue.
-------------------------------------------------------------------------------------------------------
Or if you want to use the built in script, you can take this as an idea.
https://community.atlassian.com/t5/Answers-Developer-Questions/Call-built-in-script-from-workflow-post-function/qaq-p/566522
In that example, they are using the CopyProject built in. If you do the same using ReindexIssues it might work.
Something like this:
import com.onresolve.scriptrunner.canned.jira.admin.ReindexIssues
def reindex = new ReindexIssues()
reindex. ....
Hope it gives you some ideas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.