Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Hello Experts, I am trying to develop a JIRA issue widget (to appear along-side an issue).

Chandra B
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 30, 2018

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

1 answer

1 accepted

0 votes
Answer accepted
Kubilay Karpat [Snapbytes]
Contributor
July 30, 2018

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:

  1. We are currently working on a similar topic but we do not have anything product-ready yet.
  2. I hope that those materials would be helpful for you
  3. AUI is a JS framework that comes bundled with JIRA Server. It provides many useful components that shares the same look & feel with Atlassian products.
    AtlasKit on the other hand is a bundle of React components which very looks like AUI components. But don't confuse them with AUI because you can use AtlasKit components in any React application since they are written without any Atlassian dependencies.
    It is a good idea to use AtlasKit if you are already developing with React.
  4. Examples in the articles I shared can give you clues on this matter.

Best, Kubilay

Chandra B
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 31, 2018

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

Kubilay Karpat [Snapbytes]
Contributor
August 7, 2018

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!

Suggest an answer

Log in or Sign up to answer