How to create custom dashboard on plugin installation?


I want to -

  1. create a custom dashboard available for all users when plugin is installed,
  2. add the gadgets bundled in my plugin by default,
  3. Add a link to this dashboard from my plugin's menu item.

Is it possible and if yes then can some one point out any documentation or example to achieve this?

OR else is there a way to extend dashboard functionality in plugin's webpage, to make it gadget container?



1 answer

Hi Parag!

I am sure that it's possible to implement 1, 2 & 3 however it will not be an easy task.

I advise you to check how it's done in JIRA (JIRA sources are open to everyone who bought it and can be downloaded under atlassian account). I monitored actions that are invoked for "Create dashboard" and "Add gadgets" screens and noted mappings for you:

Action            URL                                                 Class
Create dashboard  https://MY-JIRA/secure/AddPortalPage!default.jspa   com.atlassian.jira.web.action.user.AddPortalPage
Add gadgets       https://MY-JIRA/secure/Dashboard.jspa               com.atlassian.jira.web.action.Dashboard

You need to examine the appropriate classes and copy - paste and then adjust the code. It could be useful to debug appropriate JIRA actions.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

335 views 0 1
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you