The plugin would show some charts/graphs related to the issue. I have a pure-web (html/JS) version of the intended UI developed in ReactJS. I can build/bundle this as HTML/CSS/JS code that can run on any browser.
1. Insert my rectangular window (the bundle described above)
2. This should run the code and produce the charts/graphs
3. All of my interactions with charts must work (it should as its Javascript)
I have a barebones plugin that emits a line of text :
src/main/resources/templates/my-test-plugin-webpanel.vm
<div class="ghx-container">
<table class="aui">
<tbody>
This is where ReactJs code should render
</tbody>
</table>
</div>
[I picked this up from an example I read online]
Questions:
1. Has anyone achieved something like this before? (i.e Build using a JS framework and embed inside a plugin)?
2. If yes, can you share some pointers/examples for such an approach?
3. I have read about AUI (and react-AUI). It is unclear on whether I need to use AUI library for developing plugins.
4. Is there a good example of a plugin that uses Javascript to render inside the window? An example of an issues plugin would be great.
thanks!
Chandrabhanu
Hi Chandra,
Welcome to the community. If you have already built your JS code you can simply inject it to JIRA UI by using Web Resource module. However you might want to follow a more structured approach. Good news is that there are some quite good materials on this topic. Please have a look at following:
For you questions:
Best, Kubilay
Hi Kubilay,
Thank you for your prompt response. I had already checked https://developer.atlassian.com/blog/2016/06/jira-add-on-dev-2016-part-1/ but I couldn't find a complete example that I could use. As a newbie, I am looking for a simple ReactJS HelloWorld example that I can refer to and build on.
Thanks!
Chandrabhanu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandra,
As far as I know there is no such an example code with React.js for server. But I suppose it should be as simple as giving an root element (HTML element of your custom field, issue panel etc.) retrieved in NEW_CONTENT_ADDED listener to main React initializer.
Best!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.