/dc-migration-assistant

Atlassian server app for migrating to Jira Data Center on AWS

Primary LanguageTSQLApache License 2.0Apache-2.0

Atlassian DC Migration Assistant

Atlassian server app for migrating to Data Center on AWS

Atlassian license Build PRs Welcome

Usage

Build the plugin via mvn package then install the plugin into your Jira instance through the "Manage Apps" menu and uploading the app .jar or .obr found in the target directory.

Developing the plugin

Dependencies

Frontend

Stack

The frontend is built on a stack of:

In the project directory, you can run:

yarn start

It builds the frontend and puts it in the watch mode with hot reload. In other words, if you have the whole plugin and an instance already working, this will enable you to make quick changes with instant preview.

Go to http://localhost:3333 to run the frontend without Jira

If you want to test in-app, run mvn amps:run --product [jira|refapp|confluence] while the dev server is running

Backend

Here are the SDK commands you'll use immediately:

  • Run the unit-test suite: mvn clean verify
  • Run the integration-test suite: mvn clean verify -P 'integration'
  • Run the plugin in a product: cd jira-plugin && mvn amps:run -Dproduct.version=<version e.g. 8.5.0> -DskipTests
    • If you want to remotely debug your code running in the product, run mvn amps:debug and create IDEA Remote run configuration (defaults are ok)
    • To run the plugin in development mode that allows access to the /develop/migration/stage endpoint you need a spring profile titled allowAnyTransition to be enabled. To do so during development or testing, either -
      • Add the following command suffix -Damps.jvm.args="-Dspring.profiles.active=allowAnyTransition" to amps:run or amps:debug
      • Set an environment variable to enable the spring profile. i.e. SPRING_PROFILES_ACTIVE=allowAnyTransition mvn amps:run ...
  • Build the plugin: mvn package and quick reload will reinstall the plugin in the product (https://developer.atlassian.com/server/framework/atlassian-sdk/automatic-plugin-reinstallation-with-quickreload/)
    • If you are not changing frontend, you can run mvn package -Pno-frontend - this will disable frontend tasks and speed up maven process
  • When in doubt, mvn clean it out
  • Full atlassian maven reference

Testing:

Username Password
admin admin

Manage from http://localhost:2990/jira/plugins/servlet/upm

Full documentation is always available at:

https://developer.atlassian.com/display/DOCS/Introduction+to+the+Atlassian+Plugin+SDK

Executing and Testing

mvn verify

Will run all tests

yarn test

For running just UI tests.

yarn lint

Checks the frontend plugin for styling errors.

The ruleset is set to be compatible with other Server plugins, so please mind that when considering making changes to it.

yarn lint --fix

Will additionally fix any automatically-fixable issues.

UI Testing Framework

See the testing README for details.

Contributions

Contributions to DC Migration Assistant are welcome! Please see CONTRIBUTING.md for details

License

This library is licensed under the Apache 2.0 License.


With ❤️ from Atlassian