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.component.ComponentAccessor | |
import com.atlassian.jira.config.properties.APKeys | |
import org.apache.commons.httpclient.HttpClient | |
import org.apache.commons.httpclient.HttpMethod | |
import org.apache.commons.httpclient.methods.GetMethod | |
def client = new HttpClient() | |
def baseUrl = ComponentAccessor.getApplicationProperties().getString(APKeys.JIRA_BASEURL) | |
HttpMethod method = new GetMethod("${baseUrl}/login.jsp") | |
def httpStatus = client.executeMethod(method) |
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.component.ComponentAccessor | |
import com.atlassian.jira.issue.MutableIssue | |
import org.apache.log4j.Logger | |
def log = Logger.getLogger("com.onresolve.jira.groovy.MyScript") | |
def MutableIssue issue = issue | |
log.debug(issue) | |
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.crowd.embedded.api.User | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.config.properties.APKeys | |
import com.atlassian.jira.web.session.currentusers.JiraUserSessionTracker | |
import groovy.json.JsonSlurper | |
import org.apache.commons.httpclient.Header | |
import org.apache.commons.httpclient.HttpClient | |
import org.apache.commons.httpclient.HttpMethod |
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.Issue | |
import com.atlassian.jira.issue.IssueInputParametersImpl | |
import org.apache.log4j.Logger | |
def log = Logger.getLogger("com.onresolve.jira.groovy.MyScript") | |
def subTaskManager = ComponentAccessor.getSubTaskManager() |
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)"); |
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
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
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 examples.usermgr | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.issue.Issue | |
import com.opensymphony.workflow.InvalidInputException | |
/* CONFIGURABLE SECTION */ | |
// custom field names |