Forums

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

[plugin development] How to display a report in a dashboard item?

tom-42mo April 3, 2019

Hey!

 

I've written a plugin for JIRA and created a report (similar to this: https://developer.atlassian.com/server/jira/platform/creating-a-jira-report/). Now I'd like to include this report (and many others) in a dashboard. 

I've tried creating a Dashboard Item (https://developer.atlassian.com/server/jira/platform/writing-a-dashboard-item-app/), but I'm unsure whether it would be a good practice or even possible to fetch the report via soy template..

Any suggestions on how to include a report in the dashboard, without code duplication and performance penalties would be highly appreciated.

1 answer

1 accepted

1 vote
Answer accepted
Tuncay Senturk
Community Champion
April 3, 2019

Hello @tom-42mo 

They have very different architectures (servlet, REST service and xml and soy template etc). I generally implement a single service to generate report data and use this service both in gadget and report. I'm afraid, UI layer should be written separate.

If you find any better solution, please share ;)

Cheers

tom-42mo April 3, 2019

I'm afraid I'm going to go for the way you suggested. Just wanted to make sure there's no other sensible way to do this. Thanks for the confirmation ;)

Suggest an answer

Log in or Sign up to answer