Inspiration

The main inspiration for this app from Forge Slack event. There is a couple of features which requires some additional updates. I wanted to point out something different on it for Discord developers and users... and here we are, after couple of weeks, with an app for that. :D I also had some experience with developing simple discord bot app, so why not in Jira this time?

What it does

Forge Discord Event for Jira Dev App allows you to post the required data directly from Jira issue. You can also point or highlight something else using embed format.

How we built it

Discord Event for Jira Dev App was built using Forge and React Js stacks. To help out with things I have also used Discord guide. From my previous experience, it works with react framework really well, so there was no point not to use it, as it really helps with development and with further app maintenance. The main panel of app uses Issue trigger module. It heavily depends on Discord webhook event format, so that was only choice to technically do this. I have also implemented my own lightweight app editing library on top of the embed-preview, so it would fit perfectly with Jira and with what I wanted to do in this project. I have managed to implement all core features that I wanted:

Challenges we ran into and accomplishments that we're proud of

The main concern was if it technically feasible to do that in Jira and Forge environments. There was a two main steps in webhook call and integrating embeds, and on each step there could be a technical blocker that could cancel whole project.

So I started with a lightweight app that would at least get all request body fetched from jira svc and display it. Getting response was a piece of cake, as there is a dedicated API endoint and webhook URL for that. But first problems came after that - I needed to display them (obviously). The content link that API returned just didn't work with webhook format. So I dig deeper into how discord webhook event works in standard Jira issue format and came up with discord guide that actually worked!

FETCHING DATA

Luckily, after adding some permissions to manifest file I've managed to finally get data from Jira. There was some problems when converting it to dataUrl when I was using requestJira directly from frontend, so I ended up implementing that functionality on Forge backend and using bridge to execute it but not to deploy.

What's next for it!

After Codegeist, I want to add some more tools, especially for forge jira issue events in the embed view. And there's always room for other improvements. I could work more on UI/UX side, especially on text tool and entering extra info for it. There's also an idea to add option for creating/editing issue texts, so you can eg. show in different users issue panels how to reproduce given triggered problem. But it's a bigger feature for future. :)

Try it out!

Here's an trial link, so you can install this App on your Jira and test it by yourself! and hope to make it to marketplace.

Built With

Share this project:

Updates