How to create custom dashboard on plugin installation?

Hi,

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?

Thanks,

Parag

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

88 views 0 5
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