This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package examples.usermgr | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.issue.Issue | |
/* CONFIGURABLE SECTION */ | |
// custom field names | |
final def userNameField = "Username" | |
final def passwordField = "Password" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package examples.usermgr | |
import com.atlassian.crowd.embedded.impl.ImmutableUser | |
import com.atlassian.jira.bc.user.UserService | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.issue.Issue | |
/** | |
* Remove user from all groups and deactivate | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rest name="Script Runner REST Resource - Common" | |
key="scriptrunner-rest-resource-common" | |
path="/scriptrunner" | |
version="1.0" | |
package="com.onresolve.scriptrunner.runner.rest.common"> | |
<description>Script Runner REST resource - Common</description> | |
</rest> | |
<rest name="Script Runner REST Resource - JIRA" | |
key="scriptrunner-rest-resource-jira" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-03-03 21:37:25,324 NodeReindexServiceThread:thread-1 WARN [atlassian.jira.index.AccumulatingResultBuilder] java.lang.NullPointerException | |
2014-03-03 21:37:25,333 NodeReindexServiceThread:thread-1 ERROR [jira.index.ha.DefaultNodeReindexService] Error re-indexing node changes | |
com.atlassian.jira.index.IndexingFailureException: Indexing completed with 1 errors | |
at com.atlassian.jira.index.AccumulatingResultBuilder$CompositeResult.await(AccumulatingResultBuilder.java:209) | |
at com.atlassian.jira.issue.index.DefaultIndexManager$6.await(DefaultIndexManager.java:699) | |
at com.atlassian.jira.issue.index.DefaultIndexManager.obtain(DefaultIndexManager.java:728) | |
at com.atlassian.jira.issue.index.DefaultIndexManager.await(DefaultIndexManager.java:695) | |
at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexComments(DefaultIndexManager.java:546) | |
at sun.reflect.GeneratedMethodAccessor534.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package examples | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.issue.search.SearchProvider | |
import com.atlassian.jira.jql.parser.JqlQueryParser | |
import com.atlassian.jira.util.ImportUtils | |
import com.atlassian.jira.web.bean.PagerFilter | |
def jqlQueryParser = ComponentAccessor.getComponent(JqlQueryParser.class) | |
def searchProvider = ComponentAccessor.getComponent(SearchProvider.class) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package examples.usermgr | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.issue.Issue | |
import com.opensymphony.workflow.InvalidInputException | |
/* CONFIGURABLE SECTION */ | |
def parentGroupFieldName = "Parent Group" | |
def childGroupFieldName = "Child Group" | |
/* END CONFIGURABLE SECTION */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package examples.usermgr | |
import com.atlassian.jira.bc.JiraServiceContextImpl | |
import com.atlassian.jira.bc.group.GroupRemoveChildMapper | |
import com.atlassian.jira.bc.group.GroupService | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.issue.Issue | |
import com.opensymphony.workflow.loader.WorkflowDescriptor | |
/* CONFIGURABLE SECTION */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package examples | |
import com.almworks.jira.structure.api.PermissionLevel | |
import com.almworks.jira.structure.api.StructureException | |
import com.almworks.jira.structure.api.forest.ForestAccessor | |
import com.almworks.jira.structure.api.forest.ForestTransaction | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.issue.Issue | |
import com.onresolve.scriptrunner.runner.customisers.PluginModule | |
import com.onresolve.scriptrunner.runner.customisers.WithPlugin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package examples | |
import com.atlassian.greenhopper.model.validation.ErrorCollection | |
import com.atlassian.greenhopper.service.rapid.view.RapidViewService | |
import com.atlassian.greenhopper.web.rapid.view.RapidViewHelper | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.onresolve.scriptrunner.runner.customisers.JiraAgileBean | |
import com.onresolve.scriptrunner.runner.customisers.WithPlugin | |
@WithPlugin("com.pyxis.greenhopper.jira") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package examples.docs | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.onresolve.scriptrunner.runner.customisers.JiraAgileBean | |
import com.onresolve.scriptrunner.runner.customisers.WithPlugin | |
import com.pyxis.greenhopper.GreenHopper | |
@WithPlugin("com.pyxis.greenhopper.jira") | |
@JiraAgileBean |