History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-4168
Type: Task Task
Status: Open Open
Priority: Major Major
Assignee: Steve Luo
Reporter: Phong Trinh
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Backup dashboards and user permissions nightly

Created: 04/Apr/25 01:45 AM   Updated: 29/Apr/25 02:23 AM
Component/s: None
Affects Version/s: 14.0.28
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
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

 All   Comments   Work Log   Change History      Sort Order:
Phong Trinh [29/Apr/25 02:23 AM]
 Thank you, Steve!

 ptrinh

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.

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?

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