Skip to content

Instantly share code, notes, and snippets.

import groovy.json.JsonBuilder
import org.apache.log4j.Logger
import org.apache.log4j.Level
import groovyx.net.http.*
def key = issue.key
def customFields = get("/rest/api/2/field")
.asObject(List)
.body
.findAll { (it as Map).custom } as List<Map>
@nafeger
nafeger / JiraScriptRunnerToAirtable.groovy
Created October 22, 2020 15:35
Jira Adaptavist ScriptRunner Listener to post to Airtable
import groovy.json.JsonBuilder
import groovyx.net.http.ContentType
import groovyx.net.http.HTTPBuilder
import groovyx.net.http.Method
import org.apache.log4j.Logger
import org.apache.log4j.Level
import groovyx.net.http.*
/**
Change these based on api.airtable.com
*/
Index: src/main/jmvc/steal/clean/clean.js
===================================================================
--- src/main/jmvc/steal/clean/clean.js (revision 510)
+++ src/main/jmvc/steal/clean/clean.js (working copy)
@@ -2,12 +2,18 @@
// using with jslint: js steal/cleanjs path/to/file -jslint
steal.plugins('steal/build').then('//steal/clean/beautify','//steal/clean/jslint','//steal/rhino/prompt', function(steal){
- var lintAndPrint = function(out, predefined){
-
@nafeger
nafeger / .bashrc
Created November 16, 2010 05:12 — forked from ralfebert/.bashrc
# Prompt
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\[\033[31;38m\]\u@\h\[\033[00m\]:\[\033[31;38m\]\w\[\033[1;31m\]\$(parse_git_branch)\[\033[00m\] "
# Editor
export GIT_EDITOR='nano -Y patch'
@nafeger
nafeger / maven_pom_file_for_jmvc_project
Created November 5, 2010 14:37
A maven pom file for the project
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>StaticContent</artifactId>
<packaging>jar</packaging>
<name>StaticContent</name>
<version>${version.properties}</version>
<url>http://maven.apache.org</url>
<build>
<plugins>