<< Back to previous view

[QB-4168] Backup dashboards and user permissions nightly
Created: 04/Apr/25  Updated: 29/Apr/25

Status: Open
Project: QuickBuild
Component/s: None
Affects Version/s: 14.0.28
Fix Version/s: None

Type: Task Priority: Major
Reporter: Phong Trinh Assigned To: Steve Luo
Resolution: Unresolved Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Description   
Hello,

I'm currently working on automating the export of all dashboards into a single file for bulk restoration, as well as exporting individual dashboards for more targeted restores. This process is scheduled to run nightly in QuickBuild. A similar approach is also being applied to user permissions.

Do you have any suggestions or best practices for handling this?

Thank you in advance,
ptrinh

 Comments   
Comment by Steve Luo [ 07/Apr/25 03:55 PM ]
You may consider to use RESTful API to import/export the dashboards:

https://wiki.pmease.com/display/QB15/Interact+with+Dashboards

For user permission, you may also consider to use RESTful API:

https://wiki.pmease.com/display/QB15/Interact+with+Configuration+Authorizations#access-authorizations-of-a-particular-group
Comment by Phong Trinh [ 07/Apr/25 04:06 PM ]
 Thank you for promptly response and the information, Steve!
 Can I interact with dashboards in Groovy instead of REST APIs?
Comment by Steve Luo [ 08/Apr/25 02:58 AM ]
Hi Phong, yes, of cause you can use Groovy script to do the job.

For example, to list all Dashboard:

DashboardManager.instance.getAll()

to get a specific Dashboard with id = 123:
var dashboard = DashboardManager.instance.get(123)

to save:
DashboardManager.instance.save(dashboard)

You may refer to the QuickBuild source code for more.
Comment by Phong Trinh [ 29/Apr/25 02:23 AM ]
 Thank you, Steve!

 ptrinh
Generated at Fri May 09 15:41:43 UTC 2025 using JIRA 189.