atlassian-addon-helper
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Atlassian Addon Helper

This project helps you extend your existing express app to serve as an Atlassian Addon (e.g. Jira or Confluence). The package is meant to be used with express and will create the necessary endpoints you would need to register your add on with the Atlassian Product of choice.

Although it was created for Nexus-based apps, it is not opinionated about the project using it.

What is this?

To understand what this is you should probably read up about how to develop Atlassian Addons.
Developing Atlassian Addons is fully documented here:

And each app has different ways of extending them.

For Jira:

For Confluence

How To Use

All you really need to do is instantiate the AtlassianAddon class and pass in the parameters that are fully described in the srd/index.ts file's IAtlassianDescriptor interface.

The Atlassian Addon class creates the environment in which requests from an Atlassian product can be received and processed. This will handle automatic production of the descriptor file as well as generating the installed and uninstalled endpoints.

It will also handle storage of the client information in a local store that is configured via the dbConnectionString constructor parameter.

We use Keyv to store this information. For more information about Keyv and the possible connection strings, visit https://github.com/lukechilds/keyv

Note

This library is a full replacement for the Atlassian Connect Express library but should only be used in these cases:

  • You need something that works better with Typescript
  • You would like more control over the endpoints.

I say that because the Atlassian Connect Express package is fully supported by Atlassian while this is not which means it will likely trail behind on changes.

Readme

Keywords

none

Package Sidebar

Install

npm i atlassian-addon-helper

Weekly Downloads

6

Version

0.1.0

License

ISC

Unpacked Size

92.8 kB

Total Files

25

Last publish

Collaborators

  • kshehadeh