Simple example on how to create a Jira add-on using Atlassian Connect.
Start it with npm start and some appropriate credentials and it should display a new addon in your Jira project view.
This is a really simple addon that will only work for trivial projects containing a small amount of issues and customers. For anything at scale, a more robust solution would be required. See the comments in code for some of my ideas.