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
| 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
| <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
| 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
| 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.jira.component.ComponentAccessor | |
| import com.atlassian.jira.issue.Issue | |
| import com.opensymphony.workflow.InvalidInputException | |
| /* CONFIGURABLE SECTION */ | |
| // custom field names |
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
| import com.atlassian.jira.issue.Issue | |
| import com.atlassian.jira.issue.MutableIssue | |
| import com.onresolve.jira.groovy.canned.utils.WorkflowUtils | |
| def issue = issue as Issue | |
| // ---------------- CONFIGURE THIS -------------------------- | |
| def actionId = 3 // action ID to reopen a subtask | |
| // ---------------------------------------------------------- |
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 com.onresolve.jira.groovy.user | |
| import com.atlassian.jira.ComponentManager | |
| import com.atlassian.jira.bc.project.component.ProjectComponent | |
| import com.atlassian.jira.component.ComponentAccessor | |
| def formComponent = getFieldById(fieldChanged) | |
| def affectsVersions = getFieldById("versions") | |
| def issueContext = getIssueContext() |
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.onresolve.jira.groovy.canned.admin.CopyProject | |
| import org.apache.log4j.Logger | |
| def log = Logger.getLogger("com.onresolve.jira.groovy.MyScript") | |
| Thread executorThread = new Thread(new Runnable() { | |
| void run() { |
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
| (function ($) { | |
| $(function () { | |
| AJS.$("iframe").contents().find("a.lozenge[title='status-green']").closest("div.tr").css("background-color", "rgba(0, 128, 0, 0.03)"); | |
| AJS.$("iframe").contents().find("a.lozenge[title='status-green']").closest("tr").css("background-color", "rgba(0, 128, 0, 0.1)"); | |
| AJS.$("iframe").contents().find("a.lozenge[title='status-amber']").closest("div.tr").css("background-color", "rgba(255, 165, 0, 0.03)"); | |
| AJS.$("iframe").contents().find("a.lozenge[title='status-amber']").closest("tr").css("background-color", "rgba(255, 165, 0, 0.16)"); | |
| AJS.$("iframe").contents().find("a.lozenge[title='status-red']").closest("div.tr").css("background-color", "rgba(255, 0, 0, 0.03)"); |