How to get atlascamp-2018-plugin app to run

Hi all,

As I mentioned in an earlier post, I’m trying to build a jira server app that can load ES6 .js modules.

Having followed this Atlas Camp 2018 talk, I’m finding it difficult to follow along. For context I’ve extracted the git repo, rolled the commit back to ‘STEP 8.1’, run yarn to install the dependencies and then atlas-run to build the package. It seems to finish building without any fundamental errors, but I’m a little lost after that.

My questions are:

  1. I’m assuming this setup doesn’t include the actual installation of a Jira dev environment, as opposed to the SDK tutorials that build and serve an instance at http://localhost:2990/jira. Is this something I add into the pom.xml file, or do I need to configure the webpack too? I’ve tried adding a jira-software application under build > plugins > plugin but to no avail
  2. The webpack.config.js file mentions the devServerPort variable is set to 3333, so I’m assuming once everything is setup the instance will be available at http://localhost:3333/jira. Is that true?

Any help / guidance here would be most appreciated! All I want is to see a Hello World jira plugin that I can start adding ES6 modules to. :sweat_smile:


Hi Brad,

I am not sure I understand your question completely, but I just try to answer it as well as I can.
The atlassian-webresource-webpack-plugin does not do anything beyond transpiling and bundling your files (e.g. ES6/ESNext modules), as well as then generating an XML-file similar to the atlassian-plugin.xml so that these javascript files can be understood by the p2-plugin system of Atlassian products.
If you want to use es6 javascript within an existing plugin of yours, you need to add a webpack-build step for your frontend resources in that plugin and add the atlassian-webresource-webpack-plugin into your webpack config.
Does this make sense?
An example of how it is being used can be seen in the refapp-example of the clientside-extensions repository, where we make use of the webpack-plugin for a demo app:

I hope that gives you some idea of how this works?

1 Like

The instance will start as usual on http://localhost:2990/jira. When you go to the URL where you expect to see the plugin on this instance, Jira will load resource files for this plugin from the Webpack server, which is running at http://localhost:3333. You shouldn’t have to worry about this URL in most cases.