moveWidget

On this page
Back to index

Summary

Moves a widget within a dashboard.
projectName
Stringrequired
The name for the project that must be unique among all projects.
dashboardName
Stringrequired
Unique name of the dashboard within the project.
widgetName
Stringrequired
The name of the dashboard widget.
beforeWidget
Stringoptional
The name of the widget before which the widget should be placed. Blank to move the widget to the last position in the specified section or phase.
column
Stringoptional
The column in a COMMAND_CENTER dashboard to display the widget in. Applicable only for COMMAND_CENTER type of dashboard.
section
Stringoptional
The section of a dashboard to display the widget in. Applicable only for COMMAND_CENTER type of dashboard. Required if column is not set.
Possible values: "PHASE_DETAIL", "PHASE_SUMMARY", "SUMMARY"

Usage

Groovy

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.moveWidget( projectName: "test-projectName", dashboardName: "test-dashboardName", widgetName: "test-widgetName" /* optional arguments */ )