Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JIRA Background Indexing

Suraj Shrivastav August 31, 2020

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

1 answer

0 votes
Gustavo Félix
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 31, 2020

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.

Suggest an answer

Log in or Sign up to answer