Skip to content

Small utility to provide a link to a migrated issue when accessing an old Jira URL

License

Notifications You must be signed in to change notification settings

zencrepes/zlinks

Repository files navigation

zlinks

A small Nest.js app that automatically provides a link to the migrated issue in GitHub using data collected by zindexer during the GitHub Import process.

Calling an url such as http://my.previous.jira.url/browse/PIPELINE-22 will redirect display the following content:

<html>
  <head><title>Ticket moved</title></head>
  <body>
    <p><a href="https://jira.jahia.org/browse/PIPELINE-22">PIPELINE-22</a> has moved to a new home at: <a href="https://github.com/my-org/jira-pipeline/issues/129">https://github.com/my-org/jira-pipeline/issues/129</a></p>
  </body>
</html>

Generate the database

Using zindexer, once all your issues have been migrated and checked, call the build-linkdb action

zindexer github:import -a build-linkdb

You'll find in the logs the path to the generated sqlite3 database

Start zlinks

yarn install
DATABASE_FILEPATH=/Users/username/.config/zindexer/jira-export.db yarn run start

Or best, use the zencrepes/zlinks docker image

About

Small utility to provide a link to a migrated issue when accessing an old Jira URL

Resources

License

Stars

Watchers

Forks

Packages

No packages published