1. Tim Moore
  2. JIRA Splat Plugin

Commits

Tim Moore  committed 8dfc2cd

Initial commit of JIRA Splat Plugin.

  • Participants
  • Branches default

Comments (0)

Files changed (4)

File .hgignore

View file
  • Ignore whitespace
+.idea
+.iml

File pom.xml

View file
  • Ignore whitespace
+<?xml version="1.0" encoding="UTF-8"?>
+
+<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>
+    <groupId>com.atlassian.labs</groupId>
+    <artifactId>jira-splat-plugin</artifactId>
+    <version>1.0-SNAPSHOT</version>
+
+    <organization>
+        <name>Atlassian</name>
+        <url>http://atlassian.com</url>
+    </organization>
+
+    <name>JIRA Splat Plugin (Speakeasy-compatible)</name>
+    <description>
+        Inspired by an urgent customer request at http://twitter.com/#!/quarkstone/status/26703920046804992
+
+        Samples used from Freesound
+
+        By benhillyard (http://www.freesound.org/usersViewSingle.php?id=338808)
+           Vocal_Splat_07.wav (http://www.freesound.org/samplesViewSingle.php?id=47979)
+    </description>
+    <packaging>atlassian-plugin</packaging>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>com.atlassian.maven.plugins</groupId>
+                <artifactId>maven-jira-plugin</artifactId>
+                <version>3.3-m7</version>
+                <extensions>true</extensions>
+                <configuration>
+                    <productVersion>4.2.1-b588</productVersion>
+                    <productDataVersion>4.1.1</productDataVersion>
+                    <pluginArtifacts>
+                        <pluginArtifact>
+                            <groupId>com.atlassian.labs</groupId>
+                            <artifactId>speakeasy-plugin</artifactId>
+                            <version>0.3</version>
+                        </pluginArtifact>
+                    </pluginArtifacts>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+    <properties>
+        <plugin.key>com.atlassian.labs.jira-splat-plugin</plugin.key>
+    </properties>
+</project>

File src/main/resources/atlassian-plugin.xml

View file
  • Ignore whitespace
+<atlassian-plugin key="${plugin.key}" name="${project.name}" plugins-version="2">
+    <plugin-info>
+        <description>${project.description}</description>
+        <version>${project.version}</version>
+        <vendor name="Atlassian" url="http://www.atlassian.com/" />
+    </plugin-info>
+
+    <scoped-web-resource key="splat">
+        <resource type="download" name="splat.js" location="js/splat.js"/>
+        <context>atl.general</context>
+    </scoped-web-resource>
+</atlassian-plugin>

File src/main/resources/js/splat.js

View file
  • Ignore whitespace
+AJS.toInit(function() {
+    var audioElement = document.createElement('audio');
+    audioElement.setAttribute('src', 'http://static.incrementalism.net/audio/Vocal_Splat_07.wav');
+
+    AJS.$("a:contains(Resolve Issue), a:contains(Close Issue)").click(function() {
+        audioElement.play();
+    });
+});