This file contains 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.workflow.JiraWorkflow | |
import com.atlassian.jira.workflow.condition.InProjectRoleCondition | |
import com.opensymphony.workflow.loader.ConditionDescriptor | |
def workflowName = "My workflow" | |
def workflowManager = ComponentAccessor.getWorkflowManager() | |
def workflow = workflowManager.getWorkflow(workflowName) |
This file contains 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
#!/app/Subversion/linux/bin/python | |
import sys | |
import os | |
import commands | |
import ast | |
import re | |
""" | |
This is a program that will fix esvn:roots on a repository. It will work from the file |
This file contains 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 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
<script type="text/javascript"> | |
(function(a){a.extend(a.fn,{livequery:function(e,d,c){var b=this,f;if(a.isFunction(e)){c=d,d=e,e=undefined}a.each(a.livequery.queries,function(g,h){if(b.selector==h.selector&&b.context==h.context&&e==h.type&&(!d||d.$lqguid==h.fn.$lqguid)&&(!c||c.$lqguid==h.fn2.$lqguid)){return(f=h)&&false}});f=f||new a.livequery(this.selector,this.context,e,d,c);f.stopped=false;f.run();return this},expire:function(e,d,c){var b=this;if(a.isFunction(e)){c=d,d=e,e=undefined}a.each(a.livequery.queries,function(f,g){if(b.selector==g.selector&&b.context==g.context&&(!e||e==g.type)&&(!d||d.$lqguid==g.fn.$lqguid)&&(!c||c.$lqguid==g.fn2.$lqguid)&&!this.stopped){a.livequery.stop(g.id)}});return this}});a.livequery=function(b,d,f,e,c){this.selector=b;this.context=d;this.type=f;this.fn=e;this.fn2=c;this.elements=[];this.stopped=false;this.id=a.livequery.queries.push(this)-1;e.$lqguid=e.$lqguid||a.livequery.guid++;if(c){c.$lqguid=c.$lqguid||a.livequery.guid++}return this};a.livequery.prototype={stop:functi |
This file contains 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.search.SearchProvider | |
import com.atlassian.jira.jql.parser.JqlQueryParser | |
import com.atlassian.jira.web.bean.PagerFilter | |
import org.apache.log4j.Logger | |
def log = Logger.getLogger("com.onresolve.jira.groovy.MyScript") |
This file contains 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.config.properties.APKeys | |
import groovy.json.JsonSlurper | |
import org.apache.commons.httpclient.HttpClient | |
import org.apache.commons.httpclient.HttpMethod | |
import org.apache.commons.httpclient.methods.GetMethod | |
import org.apache.log4j.Logger |
This file contains 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.customfields.option.Option | |
import com.atlassian.jira.issue.fields.config.FieldConfig | |
import com.atlassian.jira.issue.fields.layout.field.AbstractFieldLayoutManager | |
import com.atlassian.jira.issue.managers.DefaultCustomFieldManager | |
import org.apache.log4j.Level | |
import org.apache.log4j.Logger |
This file contains 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.listeners | |
import com.atlassian.jira.event.issue.AbstractIssueEventListener | |
import com.atlassian.jira.event.issue.IssueEvent | |
import com.atlassian.jira.ComponentManager | |
import org.apache.log4j.Category | |
import com.atlassian.jira.event.type.EventTypeManager | |
import com.atlassian.jira.event.type.EventType | |
import com.atlassian.jira.ComponentManager | |
import com.atlassian.jira.issue.CustomFieldManager |
This file contains 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.core.ofbiz.CoreFactory | |
import com.atlassian.jira.util.ErrorCollection | |
import com.onresolve.jira.groovy.CannedScriptRunner | |
import com.onresolve.jira.groovy.GroovyRunner | |
import java.sql.Connection | |
import java.sql.PreparedStatement | |
import java.sql.ResultSet |
This file contains 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
def restParams = [ | |
className: "com.onresolve.jira.groovy.canned.admin.CopyProject", | |
args: [ | |
FIELD_SOURCE_PROJECT: SCRUM_TEMPLATE_PKEY, | |
FIELD_TARGET_PROJECT: projectKey, | |
FIELD_TARGET_PROJECT_NAME: projectName, | |
FIELD_COPY_VERSIONS: true, | |
FIELD_COPY_COMPONENTS: true, | |
FIELD_COPY_ISSUES: true, | |
FIELD_COPY_GREENHOPPER: true, |
NewerOlder