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.ComponentManager | |
import com.atlassian.jira.issue.comments.CommentManager | |
ComponentManager componentManager = ComponentManager.getInstance() | |
CommentManager commentManager = componentManager.getCommentManager() | |
commentManager.create(issue, transientVars.context.caller, "Comment automatically generated...", false) |
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
POST /cars/transactions/_bulk | |
{ "index": {}} | |
{ "price" : 10000, "color" : "red", "make" : "honda", "sold" : "2014-10-28" } | |
{ "index": {}} | |
{ "price" : 20000, "color" : "red", "make" : "honda", "sold" : "2014-11-05" } | |
{ "index": {}} | |
{ "price" : 30000, "color" : "green", "make" : "ford", "sold" : "2014-05-18" } | |
{ "index": {}} | |
{ "price" : 15000, "color" : "blue", "make" : "toyota", "sold" : "2014-07-02" } | |
{ "index": {}} |
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
#!/usr/bin/python | |
import time | |
import datetime | |
import random | |
timestr = time.strftime("%Y%m%d-%H%M%S") | |
f = open('access_log_'+timestr+'.log','w') | |
ips=["123.221.14.56","16.180.70.237","10.182.189.79","218.193.16.244","198.122.118.164","114.214.178.92","233.192.62.103","244.157.45.12","81.73.150.239","237.43.24.118"] | |
referers=["-","http://www.casualcyclist.com","http://bestcyclingreviews.com/top_online_shops","http://bleater.com","http://searchengine.com"] |
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.docs | |
import com.atlassian.applinks.api.ApplicationLink | |
import com.atlassian.applinks.api.ApplicationLinkService | |
import com.atlassian.applinks.api.application.confluence.ConfluenceApplicationType | |
import com.atlassian.jira.issue.Issue | |
import com.atlassian.sal.api.component.ComponentLocator | |
import com.atlassian.sal.api.net.Request | |
import com.atlassian.sal.api.net.Response | |
import com.atlassian.sal.api.net.ResponseException |
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.IssueWorkflowManager | |
def issueManager = ComponentAccessor.issueManager | |
def issueService = ComponentAccessor.issueService | |
def issueWorkflowManager = ComponentAccessor.getComponent(IssueWorkflowManager) | |
def user = ComponentAccessor.jiraAuthenticationContext.loggedInUser | |
def customFieldManager = ComponentAccessor.getCustomFieldManager() | |
def parentLink = customFieldManager.getCustomFieldObjectByName('Parent Link') |
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.docs | |
import com.atlassian.greenhopper.service.rapid.view.RapidViewService | |
import com.atlassian.greenhopper.service.sprint.SprintIssueService | |
import com.atlassian.greenhopper.service.sprint.SprintManager | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.issue.Issue | |
import com.onresolve.scriptrunner.runner.customisers.JiraAgileBean | |
import com.onresolve.scriptrunner.runner.customisers.WithPlugin |