Want to built a dashboard with SQL connection
Asked by Arif:

Hi Need suggestions on the SQL Connections and Plotting charts


Answers:
author: DPKJ
body: [@Arif](/t5/user/viewprofilepage/user-id/3561168)SQL for Confluence by Bob Swift is best add-on you can have for SQL in Confluence.

It also has very good documentation and examples to help you.

Plugin Links

* Pro Edition - [https://marketplace.atlassian.com/apps/225/sql-for-confluence-pro-edition?hosting=datacenter\&tab=pricing](https://marketplace.atlassian.com/apps/225/sql-for-confluence-pro-edition?hosting=datacenter&tab=pricing)
* Express Edition - [https://marketplace.atlassian.com/apps/1212798/sql-for-confluence-express-edition?hosting=server\&tab=overview](https://marketplace.atlassian.com/apps/1212798/sql-for-confluence-express-edition?hosting=server&tab=overview)

Documentation,

* <https://bobswift.atlassian.net/wiki/spaces/SQL/overview>


author: Arif
body: Tutorial for building Dashboards, using SQL quires

Hi,

Could you please suggest me, any tutorial in confluence to play around with SQL connections and data, and building dashboards based on SQL quires. (Not with JIRA)


author: Arif
body: Hi RAfael

Good Morning !

Could you please suggest me, any tutorial in confluence to play around with SQL connections and data, and building dashboards based on SQL quires. (Not with JIRA)


author: Arif
body: Hi DPK J,

Could you please suggest me, any tutorial in confluence to play around with SQL connections and data, and building dashboards based on SQL quires. (Not with JIRA)


author: Arif
body: Hi [@Rafael Pinto Sperafico](/t5/user/viewprofilepage/user-id/2286143).

Thanks for your response. My question is regarding Confluence.In Confluence I want to build user interactive dashboards using the data which is in SQL server. Not from JIRA. Now I will refer the links the which you provided. Thanks for that :) . Will get back to you for more information.


author: Rafael Pinto Sperafico
body: Hi [@Arif](/t5/user/viewprofilepage/user-id/3561168) ,

Based on this question and previous one (<https://community.atlassian.com/t5/Confluence-questions/Want-to-build-a-dashboard-with-SQL-connection/qaq-p/1180137>) it is still unclear if you are referring to Jira or Confluence.

Both questions have been raised for Confluence product, however, replies were given pointing out to Jira solutions. Please, let me know if you were referring to Jira instead of Confluence, so this question and the previous one can be moved to Jira.

If you were referring to Confluence, you could be looking into [User Macro](https://confluence.atlassian.com/doc/writing-user-macros-4485.html "User Macro") or [Chart Macro](https://confluence.atlassian.com/doc/chart-macro-163415075.html "Chart Macro")where you could provide a payload and render the data on a Confluence page. Furthermore, if you want to retrieve data from Confluence itself, then you could retrieve data by consuming [Confluence's REST API](https://docs.atlassian.com/ConfluenceServer/rest/7.0.1/ "Confluence's REST API") instead of querying directly the database.

Now, if you are retrieving data from an external database, then you should be looking at:

* creating your own add-on ([User Macro module](https://developer.atlassian.com/server/confluence/user-macro-module/ "User Macro module"))
* [SQL for Confluence (Express Edition)](https://marketplace.atlassian.com/apps/1212798/sql-for-confluence-express-edition?hosting=server&tab=overview "SQL for Confluence (Express Edition)") by [Bob Swift Atlassian Add-ons (an Appfire company)](https://marketplace.atlassian.com/vendors/90/bob-swift-atlassian-add-ons-an-appfire-company "Bob Swift Atlassian Add-ons (an Appfire company)")

Please, feel free to search for other add-on in [Atlassian's Marketplace](https://marketplace.atlassian.com "Atlassian's Marketplace") as the above is just an example based on your inquire.

Hope the above helps.

Kind regards,  
Rafael


author: DPKJ
body: As I suggested in question you asked, you have two options.

1. External Plugin link this - [https://marketplace.atlassian.com/apps/630415/power-database-fields-pro-external-data?hosting=datacenter\&tab=overview](https://marketplace.atlassian.com/apps/630415/power-database-fields-pro-external-data?hosting=datacenter&tab=overview)
2. Custom Plugin Development