0

This is similar to questions posted here - How to setup dashboard with all projects view/widget? & here - How to get all projects on a dashboard in multiple columns?

My question is how can we write custom widget that can access list of projects? The sample code for widgets in github is only about ptoject level widgets, whereas I want to create a widget that can be added in the Home Page dashbaord of my sonarqube instance

Community
  • 1
  • 1
Rohan
  • 665
  • 9
  • 17

1 Answers1

0

In order to accomplish this you have to build a plugin, which is going to have that widget. I advice you to take a read at this nice introduction . The widgets are actually a small part of plugins and are written using Ruby on Rails.

jonypera
  • 446
  • 2
  • 13
  • 23
  • i have read your post and used it to develop a project level widget. My question is how do i create widget that can access list of all projects and metrics for each of those projects? – Rohan Apr 23 '16 at 16:40
  • So you want to have access to all SonarQube's projects from your plugin? – jonypera Apr 23 '16 at 19:56
  • yes. i basically need a custom dashboard that allows additional filtering of projects based on custom measures – Rohan Apr 23 '16 at 20:41
  • I think this might be helpful: http://stackoverflow.com/questions/20703300/sonar-plugin-development-create-a-global-metric – jonypera Apr 28 '16 at 14:27