Forums

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

How do i enable Re-Index project option for Project Admins?

mani@123
Contributor
July 25, 2019

Hello All,

I am Jira system administrator, i am able to see the Re-Index project option in project settings but project admins and Project Lead not able to see that option.

How do i enable Re-Index project option for them?

Thanks in Advance,

Mani

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
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.
July 25, 2019

I'm afraid you can not, there's no way to delegate that permission alone.

mani@123
Contributor
July 25, 2019

Thanks @Nic Brough -Adaptavist-

Is there any way that Project admin can Re-Index the project issues?

Thanks in advance,

Mani

Nic Brough -Adaptavist-
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.
July 25, 2019

Um, see my answer?

mani@123
Contributor
July 25, 2019

I am trying to Re-Index the all issues in a project for every 1 minute with the Script Runner "Escalation services" using below script. However, it is Re-Indexing only particular issue every time. If it is possible to Re-index the all issues every one minute it will solve my problem.

import com.atlassian.jira.issue.index.IssueIndexingService
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.util.ImportUtils
import org.apache.log4j.Category

def issueManager = ComponentAccessor.getIssueManager()
def issueIndexingService = ComponentAccessor.getComponent(IssueIndexingService)

boolean wasIndexing = ImportUtils.isIndexIssues();
ImportUtils.setIndexIssues(true);
log.warn("Reindex issue ${issue.key} ${issue.id}")
issueIndexingService.reIndex(issueManager.getIssueObject(issue.id));
ImportUtils.setIndexIssues(wasIndexing);

Thanks in Advance,

Mani

Nic Brough -Adaptavist-
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.
July 25, 2019

Do NOT do that, it will fail.  Please see my response on your duplicate question.

Suggest an answer

Log in or Sign up to answer