1. Install JDK from Oracle
  2. Set the JAVA_HOME and PATH system variables
    1. Right click on “My Computer”
    2. Properties –> Advanced Settings
    3. Environment Variables –> System Variables
    4. JAVA_HOME must be with the JDK root path
    5. PATH must be with the JDK\bin path
  3. Download the SDK from Atlassian
  4. Create a directory called “atlastutorial” for example
  5. In C:\ then put
    1. makedir atlastutorial
    2. cd atlastutorial
    3. atlas-run-standalone –product jira
  6. Run in your browse this URL: http://localhost:2990/jira
    1. user: admin pass: admin
  7. Creating our first JIRA plugin “Hello World”:
    1. enter in C:\atlastutorial
    2. atlas-create-jira-plugin
    3. Enter 1 for JIRA 5
    4. groupId: com.atlassian.tutorial
    5. artifactId: helloworld
    6. version: 1.0-SNAPSHOT
    7. package: com.atlassian.tutorial.helloworld
    8. Press Y to continue
  8. Browse to and open the atlastutorial/helloworld/src/main/resources/atlassian-plugin.xml file.

<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2">
<plugin-info>
<description>${project.description}</description>
<version>${project.version}</version>
<vendor name="${project.organization.name}" url="${project.organization.url}" />
<param name="plugin-icon">images/pluginIcon.png</param>
<param name="plugin-logo">images/pluginLogo.png</param>
</plugin-info>
<!-- add our i18n resource -->
<resource type="i18n" name="i18n" location="helloworld"/>

<!-- add our web resources -->
<web-resource key="helloworld-resources" name="helloworld Web Resources">
<dependency>com.atlassian.auiplugin:ajs</dependency>

<resource type="download" name="helloworld.css" location="/css/helloworld.css"/>
<resource type="download" name="helloworld.js" location="/js/helloworld.js"/>
<resource type="download" name="images/" location="/images"/>
<context>helloworld</context>
</web-resource>

<!-- publish our component -->
<component key="myPluginComponent" class="com.atlassian.tutorial.helloworld.MyPluginComponentImpl" public="true">
<interface>com.atlassian.tutorial.helloworld.MyPluginComponent</interface>
</component>

<!-- import from the product container -->
<component-import key="applicationProperties" interface="com.atlassian.sal.api.ApplicationProperties" />

</atlassian-plugin>

Load the HelloWorld plugin into JIRA

  1. C:\cd atlastutorial/helloworld
  2. Open the atlastutorial/helloworld/pom.xml
  3. Update the Company name and URL
  4. atlas-run
  5. That’s all!! You can see now your plugin installed in JIRA
Posted by:.

3 replies on “Create our first JIRA PLUGIN / ADD-ON … Hello World

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s