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 Feb 07, 2019 in Marketplace Apps

A Timeless Love Story

It started as any story starts, on a normal, rainy day.   Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...

452 views 8 26
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