This guide will help you build a dashboard item for a Jira P2 add-on. You need to be familiar with building Jira P2 add-ons to use this guide.
If you build a dashboard item for a Jira Connect app, see this guide instead: Building a dashboard item for Jira Connect add-on.
A dashboard item is similar to a gadget since it provides discrete dynamic content that user can use to customize their dashboard. However, dashboard items use modern rendering technologies like AMD, Soy, LESS, and so on. Dashboard items are also able to share web-resources, which greatly improves page load performance by reducing the number of requests and the overall size of data to be transferred on a dashboard load.
Dashboard items will eventually replace gadgets in Jira. They are easy to build and are faster. Gadgets
are rendered in iframes
and cannot share web-resources, which makes them slow to load. Gadgets are also
based on the OpenSocial specification that is no longer championed by Google.
The Dashboard item page shows how you should define a dashboard item in your app descriptor.
We recommend that you read all of the guidelines below before developing a dashboard item. These are high level guidelines, as this guide is intended for experienced app developers.
Unlike OpenSocial gadgets, dashboard items are not sandboxed in iframes. Hence, you need to set the correct context for the CSS/LESS and JavaScript of your dashboard item to ensure that it doesn't interfere with other dashboard items.
<div />
. All JavaScript must operate within
the context of the passed <div />
when the dashboard item is initialized. This ensures that event handlers,
for example, only get bound within the current dashboard item and don't affect other dashboard items.There are no design guidelines specific to dashboard items. We recommend that you consult the Atlassian design guidelines, as you should do when developing for any Atlassian product.
The following topics may be relevant to your dashboard item:
Rate this page: