Jira Jelly script to run re-indexing

Adam Hall April 22, 2014

Hey guys,

I have the following jelly script to run a re-indexing of Jira. I plan on running this on a weekly basis:

<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTabLib" xmlns:core="jelly:core">

<jira:Login username="username" password="password">

	<!-- Grab an instance of ComponentManager -->
	<core:invokeStatic className="com.atlassian.jira.ComponentManager" method="getInstance" var="componentManager"/>

	<!-- Get the IssueIndexManager from ComponenManager -->
	<core:invoke on="${componentManager}" method="getIndexManager" var="issueIndexManager"/>

	<!-- Invoke reIndexAll method in IssueManager -->
	<core:invoke on="${issueIndexManager}" method="reIndexAll" var="indexTime">
	</core:invoke>

</jira:Login>
</JiraJelly>

When trying to run it using Jelly Runner I'm getting the following error:

java.lang.ClassNotFoundException: com.atlassian.jira.jelly.enterprise.JiraTabLib

java.io.PrintWriter@51baebd3

Any help in finding a solution would be greatly appreciated.

Cheers.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 22, 2014

I think you want JiraTagLib, not JiraTabLib

1 vote
Boris Georgiev _Appfire_
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.
April 22, 2014

You have typo - com.atlassian.jira.jelly.enterprise.JiraTabLib , should be com.atlassian.jira.jelly.JiraTagLib

Adam Hall April 22, 2014

I was just about to delete this as I just seen it! Thanks for the answers guys :)

TAGS
AUG Leaders

Atlassian Community Events