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.onresolve.scriptrunner.runner.rest.common.CustomEndpointDelegate | |
import groovy.json.JsonBuilder | |
import groovy.transform.BaseScript | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.bc.project.component.ProjectComponent | |
import javax.ws.rs.core.MultivaluedMap | |
import javax.ws.rs.core.Response |
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 helper; | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.project.Project | |
import com.atlassian.jira.bc.project.component.ProjectComponent | |
import com.atlassian.jira.project.ProjectManager | |
import com.atlassian.jira.bc.project.component.ProjectComponentManager | |
class ComponentHelper { |
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.onresolve.scriptrunner.runner.rest.common.CustomEndpointDelegate | |
import groovy.json.JsonBuilder | |
import groovy.transform.BaseScript | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.project.Project | |
import com.atlassian.jira.bc.project.component.ProjectComponent | |
import javax.ws.rs.core.MultivaluedMap | |
import javax.ws.rs.core.Response |
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
getFieldByName("Team").convertToMultiSelect([ | |
ajaxOptions: [ | |
url : getBaseUrl() + "/rest/scriptrunner/latest/custom/getComponent?projectKey=PROJECTKEY", //Replace ProjectKey with your project key | |
query: true, // keep going back to the sever for each keystroke | |
formatResponse: "general" | |
], | |
css: "max-width: 500px; width: 500px", | |
]) |
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
#!/bin/bash | |
# fix bluetooth sound synchronization | |
# Source: https://blog.sleeplessbeastie.eu/2016/05/09/how-to-fix-bluetooth-sound-synchronization/ | |
# References: http://askubuntu.com/questions/145935/get-rid-of-0-5s-latency-when-playing-audio-over-bluetooth-with-a2d | |
LANG=C | |
for card in $(pactl list cards short | awk '$2 ~ /^bluez_card/ { print $1 }'); do | |
# Print device name | |
echo -n "Found device: " |
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 java.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
import java.lang.*; | |
import java.util.Arrays; | |
public class Solution { |