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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

187 views 0 4
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